From: Chao Yu Date: Thu, 15 Aug 2019 11:45:36 +0000 (+0800) Subject: f2fs: fix to use more generic EOPNOTSUPP X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fd114ab22dd14ded1783b7f9b0aaddc14c098fe0;p=linux.git 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 Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 103636c522061..2d392887b92d9 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 */