summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2023-07-19 21:50:46 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2023-08-14 13:41:10 -0700
commitbc3994ffa4cf23f55171943c713366132c3ff45d (patch)
tree7aca66d828b77cd99c2d62288308617870d10a1a
parent8874ad7dae8d91d24cc87c545c0073b3b2da5688 (diff)
downloadlinux-stable-bc3994ffa4cf23f55171943c713366132c3ff45d.tar.gz
linux-stable-bc3994ffa4cf23f55171943c713366132c3ff45d.tar.bz2
linux-stable-bc3994ffa4cf23f55171943c713366132c3ff45d.zip
f2fs: remove unneeded check condition in __f2fs_setxattr()
It has checked return value of write_all_xattrs(), remove unneeded following check condition. Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c
index 71bfa2391ab4..9cc1ca75b2da 100644
--- a/fs/f2fs/xattr.c
+++ b/fs/f2fs/xattr.c
@@ -757,7 +757,7 @@ static int __f2fs_setxattr(struct inode *inode, int index,
if (index == F2FS_XATTR_INDEX_ENCRYPTION &&
!strcmp(name, F2FS_XATTR_NAME_ENCRYPTION_CONTEXT))
f2fs_set_encrypted_inode(inode);
- if (!error && S_ISDIR(inode->i_mode))
+ if (S_ISDIR(inode->i_mode))
set_sbi_flag(F2FS_I_SB(inode), SBI_NEED_CP);
same: