From: Namjae Jeon Date: Thu, 8 Dec 2011 04:33:20 +0000 (+1100) Subject: fs: remove unneeded plug in mpage_readpages() X-Git-Tag: next-20111212~1^2~182 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=90ca1bc8929bc3b6fda9b7bd82df21a01161e5f6;p=karo-tx-linux.git fs: remove unneeded plug in mpage_readpages() The block plug in mpage_readpages() is duplicates the one in read_pages(). Signed-off-by: Namjae Jeon Signed-off-by: Amit Sahrawat Cc: Jens Axboe Signed-off-by: Andrew Morton --- diff --git a/fs/mpage.c b/fs/mpage.c index fdfae9fa98cd..643e9f55ef29 100644 --- a/fs/mpage.c +++ b/fs/mpage.c @@ -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);