fs: Move enum rw_hint into a new header file
authorBart Van Assche <bvanassche@acm.org>
Fri, 2 Feb 2024 20:39:23 +0000 (12:39 -0800)
committerChristian Brauner <brauner@kernel.org>
Tue, 6 Feb 2024 13:30:48 +0000 (14:30 +0100)
commitfe3944fb245ab99570552a3bf970b00058a9ca6d
tree6fc80c8d7fd39ce5dd3345f735bfe647ed486fbc
parent1505ba06e52e701600172bccbc3aa7fb9bd5d0da
fs: Move enum rw_hint into a new header file

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.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Chao Yu <chao@kernel.org> # for the F2FS part
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Jan Kara <jack@suse.cz>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240202203926.2478590-5-bvanassche@acm.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/f2fs/f2fs.h
fs/fcntl.c
fs/inode.c
include/linux/fs.h
include/linux/rw_hint.h [new file with mode: 0644]