From: Andi Kleen Date: Wed, 5 Oct 2011 00:44:06 +0000 (+1100) Subject: dio: remove unused dio parameter from dio_bio_add_page() X-Git-Tag: next-20111011~1^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=12600b4390e59d028cad69b70af15f6c96eff346;p=karo-tx-linux.git 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 --- 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); } }