fs : remove unneeded plug in mpage_readpages.
PATCH 1/1 fs : remove unneeded plug in mpage_readpages.
block plug in mpage_readpages is duplicated with plug of read_pages. So block plug is not needed in mpage_readpages.
Signed-off-by Namjae Jeon <[email protected]>
Signed-off-by Amit Sahrawat <[email protected]>
--- fs/mpage.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
fs/mpage.c +0 -4
@@ -371,9 +371,6 @@ mpage_readpages(struct address_space *mapping, struct list_head *pages,sector_t last_block_in_bio =0 ;struct buffer_head map_bh;unsigned long first_logical_block =0 ; -struct blk_plug plug; - -blk_start_plug (&plug); map_bh.b_state =0 ; map_bh.b_size =0 ;
@@ -395,7 +392,6 @@ mpage_readpages(struct address_space *mapping, struct list_head *pages,BUG_ON (!list_empty (pages));if (bio)mpage_bio_submit (READ , bio); -blk_finish_plug (&plug);return 0 ; }EXPORT_SYMBOL (mpage_readpages);
Signature · 1 line
1.7.4.4
Any feedback for this patch?
Thanks & Regards,
Amit Sahrawat
Quoted 34 lines · Namjae Jeon
block plug in
mpage_readpagesis duplicated with plug ofread_pages. So block plug is not needed inmpage_readpages.Signed-off-by Namjae Jeon <[email protected]>Signed-off-by Amit Sahrawat <[email protected]>---
fs/mpage.c | 4 ----1 files changed, 0 insertions(+), 4 deletions(-)fs/mpage.c +0
-5@@ -371,9 +371,6 @@ mpage_readpages(struct address_space *mapping, struct list_head *pages, sector_t last_block_in_bio = 0; struct buffer_head map_bh; unsigned long first_logical_block = 0; - struct blk_plug plug; - - blk_start_plug(&plug); map_bh.b_state = 0; map_bh.b_size = 0;@@ -395,7 +392,6 @@ mpage_readpages(struct address_space *mapping, struct list_head *pages, BUG_ON(!list_empty(pages)); if (bio) mpage_bio_submit(READ, bio); - blk_finish_plug(&plug); return 0; } EXPORT_SYMBOL(mpage_readpages); --1.7.4.4