diff options
author | Joern Engel | 2010-03-17 15:29:38 +0100 |
---|---|---|
committer | Joern Engel | 2010-03-27 11:19:14 +0100 |
commit | e07bf553f37cd4fa470b499ff34d800956df2d48 (patch) | |
tree | c95e3f8f54c4b5199967b6be06da0e231c5615c6 /fs/logfs | |
parent | 59fe27c0a8173a74b105debc803b97582028c90b (diff) |
Plug memory leak in writeseg_end_io
Signed-off-by: Joern Engel <joern@logfs.org>
Diffstat (limited to 'fs/logfs')
-rw-r--r-- | fs/logfs/dev_bdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/logfs/dev_bdev.c b/fs/logfs/dev_bdev.c index f99f5dcce546..a5d0c56d3ebc 100644 --- a/fs/logfs/dev_bdev.c +++ b/fs/logfs/dev_bdev.c @@ -80,6 +80,7 @@ static void writeseg_end_io(struct bio *bio, int err) prefetchw(&bvec->bv_page->flags); end_page_writeback(page); + page_cache_release(page); } while (bvec >= bio->bi_io_vec); bio_put(bio); if (atomic_dec_and_test(&super->s_pending_writes)) |