OSDN Git Service

f2fs: fix to use more generic EOPNOTSUPP
authorChao Yu <yuchao0@huawei.com>
Thu, 15 Aug 2019 11:45:36 +0000 (19:45 +0800)
committer0ranko0P <ranko0p@outlook.com>
Tue, 24 Dec 2019 20:42:23 +0000 (04:42 +0800)
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 be8bc8b..06ff7b1 100644 (file)
@@ -1042,7 +1042,7 @@ next_dnode:
 
                        if (test_opt(sbi, LFS)) {
                                f2fs_put_dnode(&dn);
-                               return -ENOTSUPP;
+                               return -EOPNOTSUPP;
                        }
 
                        /* do not invalidate this block address */