]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: allow compression for mmap files in compress_mode=user
authorSungjong Seo <sj1557.seo@samsung.com>
Tue, 24 May 2022 01:29:11 +0000 (10:29 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 25 May 2022 06:06:38 +0000 (23:06 -0700)
commitb5264f827de70763c517f7288116a15e4693e532
treee371da72083bad046b1f27843ec8ad32f0bfc4cb
parent4cf6d94b58586e958ebddbf5fd580c2b402f1957
f2fs: allow compression for mmap files in compress_mode=user

Since commit 05db2581a156 ("f2fs: let's allow compression for mmap files"),
it has been allowed to compress mmap files. However, in compress_mode=user,
it is not allowed yet. To keep the same concept in both compress_modes,
f2fs_ioc_(de)compress_file() should also allow it.

Let's remove checking mmap files in f2fs_ioc_(de)compress_file() so that
the compression for mmap files is also allowed in compress_mode=user.

Signed-off-by: Sungjong Seo <sj1557.seo@samsung.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c