diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-07-14 20:06:57 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-14 20:14:31 +0200 |
commit | 4ce4c73f662bdb0ae5bfb058bc7ec6f6829ca078 (patch) | |
tree | 66ad2f1b6cddbe3b3badc063aac3edafc5fa8c2d /drivers/md/md.h | |
parent | dm/dm-zoned: Use the enum req_op type (diff) | |
download | linux-4ce4c73f662bdb0ae5bfb058bc7ec6f6829ca078.tar.xz linux-4ce4c73f662bdb0ae5bfb058bc7ec6f6829ca078.zip |
md/core: Combine two sync_page_io() arguments
Improve uniformity in the kernel of handling of request operation and
flags by passing these as a single argument.
Cc: Song Liu <song@kernel.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-32-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index cf2cbb17acbd..b4f84b27bdef 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -738,8 +738,7 @@ extern void md_super_write(struct mddev *mddev, struct md_rdev *rdev, sector_t sector, int size, struct page *page); extern int md_super_wait(struct mddev *mddev); extern int sync_page_io(struct md_rdev *rdev, sector_t sector, int size, - struct page *page, int op, int op_flags, - bool metadata_op); + struct page *page, blk_opf_t opf, bool metadata_op); extern void md_do_sync(struct md_thread *thread); extern void md_new_event(void); extern void md_allow_write(struct mddev *mddev); |