Re: [PATCH 00/51] Improve static type checking for request flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bart,

I generally like this.  Two thoughs:

 - I suspect most places that currently pass a enum req_op might really
   want a blk_opf_t for future extensibility, exceptions are very 
   low-level helpers like req_op() and bio_op() where the enum is
   very nice to force switch statements to handle all ops or have
   a default statements
 - a lot of the flags printinting is a mess, and introduce the code
   smell of __force casts.  It migh make sense to introduce a new
   %psomething format specifier first to print a blk_opf_t using
   printk/vsprintf/etc and switch everyone to that first instead of
   hand crafted printing.




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux