From 7f44153864155070abd54223737c4d816e5f8e6a Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Wed, 28 Sep 2011 10:51:11 +1000 Subject: [PATCH] dio: remove unused dio parameter from dio_bio_add_page() Signed-off-by: Andi Kleen Acked-by: Jeff Moyer Cc: Jens Axboe Cc: Christoph Hellwig Signed-off-by: Andrew Morton <> --- fs/direct-io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/direct-io.c b/fs/direct-io.c index 0d66d12b435a..af9917c7d08a 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -651,7 +651,7 @@ out: * * Return zero on success. Non-zero means the caller needs to start a new BIO. */ -static inline int dio_bio_add_page(struct dio *dio, struct dio_submit *sdio) +static inline int dio_bio_add_page(struct dio_submit *sdio) { int ret; @@ -724,11 +724,11 @@ static inline int dio_send_cur_page(struct dio *dio, struct dio_submit *sdio, goto out; } - if (dio_bio_add_page(dio, sdio) != 0) { + if (dio_bio_add_page(sdio) != 0) { dio_bio_submit(dio, sdio); ret = dio_new_bio(dio, sdio, sdio->cur_page_block, map_bh); if (ret == 0) { - ret = dio_bio_add_page(dio, sdio); + ret = dio_bio_add_page(sdio); BUG_ON(ret != 0); } } -- 2.39.5