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:
Chao Yu 2020-03-03 16:57:06 +08:00 committed by Jaegeuk Kim
parent 91faa5344f
commit 09ff48011e

View File

@ -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,