Messages in this thread Patch in this message | | | From | Chao Yu <> | Subject | [PATCH 2/3] f2fs: remove i_sem lock coverage in f2fs_setxattr() | Date | Thu, 27 Feb 2020 19:30:04 +0800 |
| |
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> --- fs/f2fs/xattr.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index e46a10eb0e42..5c3e82e7c0bb 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c @@ -777,12 +777,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); -- 2.18.0.rc1
| |