f2fs: allow to set compression for inlined file
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 24 Oct 2022 23:00:35 +0000 (16:00 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 2 Nov 2022 00:56:03 +0000 (17:56 -0700)
commita995627e6dd81d4485d40ce64880017a080d71e6
tree772479eee8a59062af7255f23cb5f616093e3038
parent6047de5482c33d5f912cdc907336fde9ebc5714e
f2fs: allow to set compression for inlined file

The below commit disallows to set compression on empty created file which
has a inline_data. Let's fix it.

Fixes: 7165841d578e ("f2fs: fix to check inline_data during compressed inode conversion")
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c