summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2019-08-15 19:45:36 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2019-08-23 07:57:13 -0700
commitfd114ab22dd14ded1783b7f9b0aaddc14c098fe0 (patch)
treeacf965d0c23f7b4444671ae9bb0786745bf16951 /fs/f2fs
parent3ee0c5d3b4e8bb0990a800449509c087f270d4a6 (diff)
f2fs: fix to use more generic EOPNOTSUPP
EOPNOTSUPP is widely used as error number indicating operation is not supported in syscall, and ENOTSUPP was defined and only used for NFSv3 protocol, so use EOPNOTSUPP instead. Fixes: 0a2aa8fbb969 ("f2fs: refactor __exchange_data_block for speed up") Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 103636c52206..2d392887b92d 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -1033,7 +1033,7 @@ next_dnode:
if (test_opt(sbi, LFS)) {
f2fs_put_dnode(&dn);
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
}
/* do not invalidate this block address */