summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJoern Engel <joern@logfs.org>2010-03-17 15:29:38 +0100
committerJoern Engel <joern@logfs.org>2010-03-27 11:19:14 +0100
commite07bf553f37cd4fa470b499ff34d800956df2d48 (patch)
treec95e3f8f54c4b5199967b6be06da0e231c5615c6 /fs
parent59fe27c0a8173a74b105debc803b97582028c90b (diff)
downloadop-kernel-dev-e07bf553f37cd4fa470b499ff34d800956df2d48.zip
op-kernel-dev-e07bf553f37cd4fa470b499ff34d800956df2d48.tar.gz
Plug memory leak in writeseg_end_io
Signed-off-by: Joern Engel <joern@logfs.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/logfs/dev_bdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/logfs/dev_bdev.c b/fs/logfs/dev_bdev.c
index f99f5dc..a5d0c56 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))
OpenPOWER on IntegriCloud