lkml.org 
[lkml]   [2020]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/3] f2fs: remove i_sem lock coverage in f2fs_setxattr()
    Date
    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
    \
     
     \ /
      Last update: 2020-02-27 12:30    [W:3.390 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site