Commit fd114ab2 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim

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: 0a2aa8fb ("f2fs: refactor __exchange_data_block for speed up")
Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 3ee0c5d3
...@@ -1033,7 +1033,7 @@ static int __read_out_blkaddrs(struct inode *inode, block_t *blkaddr, ...@@ -1033,7 +1033,7 @@ static int __read_out_blkaddrs(struct inode *inode, block_t *blkaddr,
if (test_opt(sbi, LFS)) { if (test_opt(sbi, LFS)) {
f2fs_put_dnode(&dn); f2fs_put_dnode(&dn);
return -ENOTSUPP; return -EOPNOTSUPP;
} }
/* do not invalidate this block address */ /* do not invalidate this block address */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment