mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
f2fs: compress: fix to call missing destroy_compress_ctx()
Otherwise, it will cause memory leak. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
91faa5344f
commit
09ff48011e
@ -396,6 +396,8 @@ static int f2fs_compress_pages(struct compress_ctx *cc)
|
||||
cc->cpages[i] = NULL;
|
||||
}
|
||||
|
||||
cops->destroy_compress_ctx(cc);
|
||||
|
||||
cc->nr_cpages = nr_cpages;
|
||||
|
||||
trace_f2fs_compress_pages_end(cc->inode, cc->cluster_idx,
|
||||
|
Loading…
Reference in New Issue
Block a user