]> 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>
Wed, 20 Aug 2025 16:41:29 +0000 (18:41 +0200)
commite229f96c06d5d3a008f4810ba14b7c55c20cfe7f
tree87c4055f0712df7c53abc3f4de156882fbc78034
parent4c3cda20c4cf1871e27868d08fda06b79bc7d568
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