On 4/11/23 06:33, Christoph Hellwig wrote:
Replace the at_head bool with a flags argument that so far only contains a single BLK_MQ_INSERT_AT_HEAD value. This makes it much easier to grep for head insertations into the blk-mq dispatch queues.
insertations -> insertions
+#define BLK_MQ_INSERT_AT_HEAD (1U << 0)
Has it been considered to introduce a new bitwise type for this flag? That would allow sparse to detect accidental conversions from bool into flag and vice versa.
Thanks, Bart.