From: Bart Van Assche Date: Thu, 14 Jul 2022 18:07:11 +0000 (-0700) Subject: mm: Use the new blk_opf_t type X-Git-Tag: v6.0-rc1~178^2~42 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f8e6e4bd9fd8c452565f3eaeb358e3cc08d880f4;p=tomoyo%2Ftomoyo-test1.git mm: Use the new blk_opf_t type Improve static type checking by using the new blk_opf_t type for block layer request flags. Cc: Andrew Morton Cc: Christoph Hellwig Cc: Jan Kara Cc: Stefan Roesch Cc: NeilBrown Signed-off-by: Bart Van Assche Link: https://lore.kernel.org/r/20220714180729.1065367-46-bvanassche@acm.org Signed-off-by: Jens Axboe --- diff --git a/include/linux/writeback.h b/include/linux/writeback.h index da21d63f70e2..e91bea371b18 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -101,9 +101,9 @@ struct writeback_control { #endif }; -static inline int wbc_to_write_flags(struct writeback_control *wbc) +static inline blk_opf_t wbc_to_write_flags(struct writeback_control *wbc) { - int flags = 0; + blk_opf_t flags = 0; if (wbc->punt_to_cgroup) flags = REQ_CGROUP_PUNT;