On Wed, Nov 29, 2023 at 05:33:07PM -0800, Bart Van Assche wrote: > Move enum rw_hint into a new header file to prepare for using this data > type in the block layer. Add the attribute __packed to reduce the space > occupied by instances of this data type from four bytes to one byte. > Change the data type of i_write_hint from u8 into enum rw_hint. Change > the RWH_* constants into literal constants to prevent that > <uapi/linux/fcntl.h> would have to be included. If we split the definitions we need a conversion function. That might just have a bunch of BUILD_BUG_ON/static_asserts to check the values are the same and otherwise do nothing, but we can't really be sloppy here.