Plug memory leak in writeseg_end_io
Signed-off-by: Joern Engel <joern@logfs.org>
This commit is contained in:
parent
59fe27c0a8
commit
e07bf553f3
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue