]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: allow set compression option of files without blocks
authorYangtao Li <frank.li@vivo.com>
Mon, 23 Jan 2023 09:46:01 +0000 (17:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:18 +0000 (13:55 +0100)
commit9a623c658bfb046fe08a0d033f9b2d0874b83253
treedcb65f5f1e150aad42944c3b1c3d0809ead20022
parent5eef56c8a25b26997cd3bf0cb73c71de8b2e24db
f2fs: allow set compression option of files without blocks

[ Upstream commit 2827cfdf6b289c3172dbb6e23e53f917de3d822b ]

Files created by truncate have a size but no blocks, so
they can be allowed to set compression option.

Fixes: 3db61801e4b1 ("f2fs: add F2FS_IOC_SET_COMPRESS_OPTION ioctl")
Signed-off-by: Yangtao Li <frank.li@vivo.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