]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: check the generic conditions first
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 30 Jun 2025 16:06:09 +0000 (16:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:28 +0000 (16:28 +0200)
commitb45134f726426d339bb3f7fdd19eed70c342863c
treef7be4ea4a5e48ba1e766d5b56ad22e37ae06eea5
parent868f23286c1a13162330fa6c614fe350f78e3f82
f2fs: check the generic conditions first

[ Upstream commit e23ab8028de0d92df5921a570f5212c0370db3b5 ]

Let's return errors caught by the generic checks. This fixes generic/494 where
it expects to see EBUSY by setattr_prepare instead of EINVAL by f2fs for active
swapfile.

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