diff options
author | Namjae Jeon <linkinjeon@gmail.com> | 2012-01-12 03:11:56 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-01-12 03:19:54 -0500 |
commit | 0b4156eb27214e81f7012458bb15d1e038db9a00 (patch) | |
tree | 5a84537c92be05918d1e1bffbd35e9bbe9fbabb5 /fs/mpage.c | |
parent | ef00f59c95fe6e002e7c6e3663cdea65e253f4cc (diff) |
fs: remove unneeded plug in mpage_readpages()
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>
Diffstat (limited to 'fs/mpage.c')
-rw-r--r-- | fs/mpage.c | 4 |
1 files changed, 0 insertions, 4 deletions
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, | |||
371 | sector_t last_block_in_bio = 0; | 371 | sector_t last_block_in_bio = 0; |
372 | struct buffer_head map_bh; | 372 | struct buffer_head map_bh; |
373 | unsigned long first_logical_block = 0; | 373 | unsigned long first_logical_block = 0; |
374 | struct blk_plug plug; | ||
375 | |||
376 | blk_start_plug(&plug); | ||
377 | 374 | ||
378 | map_bh.b_state = 0; | 375 | map_bh.b_state = 0; |
379 | map_bh.b_size = 0; | 376 | map_bh.b_size = 0; |
@@ -395,7 +392,6 @@ mpage_readpages(struct address_space *mapping, struct list_head *pages, | |||
395 | BUG_ON(!list_empty(pages)); | 392 | BUG_ON(!list_empty(pages)); |
396 | if (bio) | 393 | if (bio) |
397 | mpage_bio_submit(READ, bio); | 394 | mpage_bio_submit(READ, bio); |
398 | blk_finish_plug(&plug); | ||
399 | return 0; | 395 | return 0; |
400 | } | 396 | } |
401 | EXPORT_SYMBOL(mpage_readpages); | 397 | EXPORT_SYMBOL(mpage_readpages); |