Messages in this thread Patch in this message | | | From | Chao Yu <> | Subject | [PATCH 1/2] f2fs: compress: fix to call missing destroy_compress_ctx() | Date | Tue, 3 Mar 2020 16:57:06 +0800 |
| |
Otherwise, it will cause memory leak.
Signed-off-by: Chao Yu <yuchao0@huawei.com> --- fs/f2fs/compress.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index bd3ea01db448..b373102ed4af 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -398,6 +398,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, -- 2.18.0.rc1
| |