Skip to content

Commit

Permalink
fs: remove unneeded plug in mpage_readpages()
Browse files Browse the repository at this point in the history
The block plug in mpage_readpages() duplicates the one in read_pages().

Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Amit Sahrawat <amit.sahrawat83@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Namjae Jeon authored and Jens Axboe committed Jan 12, 2012
1 parent ef00f59 commit 0b4156e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/mpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 0b4156e

Please sign in to comment.