f2fs: check the generic conditions first
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 30 Jun 2025 16:06:09 +0000 (16:06 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 1 Jul 2025 16:21:43 +0000 (16:21 +0000)
commite23ab8028de0d92df5921a570f5212c0370db3b5
tree7db585cb8b50bb2703cc3936dc06517a31892c34
parentd738f708564764ed591cb6ab50d55489f87c726a
f2fs: check the generic conditions first

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>
fs/f2fs/file.c