Improve static type checking by using the enum req_op type for block layer request operations and the new blk_opf_t type for block layer request flags. Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Christoph Hellwig <hch@xxxxxx> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> --- fs/direct-io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/direct-io.c b/fs/direct-io.c index 840752006f60..9cfbb37ec62a 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -117,8 +117,8 @@ struct dio_submit { /* dio_state communicated between submission path and end_io */ struct dio { int flags; /* doesn't change */ - int op; - int op_flags; + enum req_op op; + blk_opf_t op_flags; struct gendisk *bio_disk; struct inode *inode; loff_t i_size; /* i_size when submitted */