f2fs: fix to check compress file in f2fs_move_file_range()
authorChao Yu <chao@kernel.org>
Sun, 10 Dec 2023 11:35:44 +0000 (19:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:35 +0000 (15:35 -0800)
commit412eee2c894acbc8670f17417123dbc8f51ba237
tree2f14a2ef4d9f68dd2053f1f78073de625a4bbe4a
parent4535be48780431753505e74e1b1ad4836a189bc2
f2fs: fix to check compress file in f2fs_move_file_range()

[ Upstream commit fb9b65340c818875ea86464faf3c744bdce0055c ]

f2fs_move_file_range() doesn't support migrating compressed cluster
data, let's add the missing check condition and return -EOPNOTSUPP
for the case until we support it.

Fixes: 4c8ff7095bef ("f2fs: support data compression")
Signed-off-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