]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:16 +0000 (14:24 +0200)
commitf6c7597b1af4f92d940cf0dfc4e7b474fff295b2
tree868c0f41b0c9f1f875d0592ba21e7e9a3638d5cb
parent29ff69143f70c147aef1036ce6d4cbfdd1018d7c
f2fs: allow compression for mmap files in compress_mode=user

[ Upstream commit 58c78c481f54e9be53e69c132867f59cb39daa67 ]

Since commit 7c1c191e44c1 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/file.c