summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/xattr.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2020-02-27 19:30:04 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2020-03-10 09:18:32 -0700
commit3addc1aed38234e21cb6f9e4df0f6795ec075059 (patch)
tree092eb7ca7c3abab16769d0305ba96c86e81c5536 /fs/f2fs/xattr.c
parentc10c98203222f4baef78a641bbb525a00eeebd2f (diff)
downloadlinux-3addc1aed38234e21cb6f9e4df0f6795ec075059.tar.gz
linux-3addc1aed38234e21cb6f9e4df0f6795ec075059.tar.bz2
linux-3addc1aed38234e21cb6f9e4df0f6795ec075059.zip
f2fs: remove i_sem lock coverage in f2fs_setxattr()
f2fs_inode.xattr_ver field was gone after commit d260081ccf37 ("f2fs: change recovery policy of xattr node block"), remove i_sem lock coverage in f2fs_setxattr() Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/xattr.c')
-rw-r--r--fs/f2fs/xattr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c
index 296b3189448a..6794a13064be 100644
--- a/fs/f2fs/xattr.c
+++ b/fs/f2fs/xattr.c
@@ -758,12 +758,9 @@ int f2fs_setxattr(struct inode *inode, int index, const char *name,
f2fs_balance_fs(sbi, true);
f2fs_lock_op(sbi);
- /* protect xattr_ver */
- down_write(&F2FS_I(inode)->i_sem);
down_write(&F2FS_I(inode)->i_xattr_sem);
err = __f2fs_setxattr(inode, index, name, value, size, ipage, flags);
up_write(&F2FS_I(inode)->i_xattr_sem);
- up_write(&F2FS_I(inode)->i_sem);
f2fs_unlock_op(sbi);
f2fs_update_time(sbi, REQ_TIME);