Skip to content

Commit

Permalink
f2fs: remove unneeded check condition in __f2fs_setxattr()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chao Yu authored and Jaegeuk Kim committed Aug 14, 2023
1 parent 8874ad7 commit bc3994f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/f2fs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bc3994f

Please sign in to comment.