f2fs: fix to use more generic EOPNOTSUPP
authorChao Yu <yuchao0@huawei.com>
Thu, 15 Aug 2019 11:45:36 +0000 (19:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 23 Aug 2019 14:57:13 +0000 (07:57 -0700)
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>
fs/f2fs/file.c

index 103636c..2d39288 100644 (file)
@@ -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 */