]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: compress: fix to free compress page correctly
authorChao Yu <yuchao0@huawei.com>
Thu, 6 May 2021 09:00:43 +0000 (17:00 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 11 May 2021 21:48:12 +0000 (14:48 -0700)
commit6c097aa93f224850c738f95e817e9e04089a6b5f
tree94a3721b7f5c99c3357f5ea1f0475bc8269f13d5
parent34a7f9e7ac904293b2fae57a20d09b810a3da267
f2fs: compress: fix to free compress page correctly

In error path of f2fs_write_compressed_pages(), it needs to call
f2fs_compress_free_page() to release temporary page.

Fixes: 61b2715b635e ("f2fs: introduce mempool for {,de}compress intermediate page allocation")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c