Plug memory leak in writeseg_end_io

Signed-off-by: Joern Engel <joern@logfs.org>
This commit is contained in:
Joern Engel 2010-03-17 15:29:38 +01:00
parent 59fe27c0a8
commit e07bf553f3
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ static void writeseg_end_io(struct bio *bio, int err)
prefetchw(&bvec->bv_page->flags); prefetchw(&bvec->bv_page->flags);
end_page_writeback(page); end_page_writeback(page);
page_cache_release(page);
} while (bvec >= bio->bi_io_vec); } while (bvec >= bio->bi_io_vec);
bio_put(bio); bio_put(bio);
if (atomic_dec_and_test(&super->s_pending_writes)) if (atomic_dec_and_test(&super->s_pending_writes))