OSDN Git Service

fs/direct-io: Reduce the size of struct dio
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Jul 2022 18:07:14 +0000 (11:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 18:14:32 +0000 (12:14 -0600)
commitc6293eacfc16fe3d85f468fc7ed91eb18f5861d3
tree028140767e5daa775857ec60a72858537bd1457b
parent1420c4a549bf28ffddbed827d61fb3d4d2132ddb
fs/direct-io: Reduce the size of struct dio

Reduce the size of struct dio by combining the 'op' and 'op_flags' into
the new 'opf' member. Use the new blk_opf_t type to improve static type
checking. This patch does not change any functionality.

Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-49-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/direct-io.c