Commit e07bf553 authored by Joern Engel's avatar Joern Engel

Plug memory leak in writeseg_end_io

Signed-off-by: default avatarJoern Engel <joern@logfs.org>
parent 59fe27c0
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment