summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/acl.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2019-04-12 16:02:57 +0800
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:44 +0200
commit353c2ea735e4b54fb6250861e67b51b1bcb47198 (patch)
tree275cdb06503a91f3e451e7815f2e81eddf651503 /fs/btrfs/acl.c
parent3e125a74fbc1938afd699ba9ba7f33801768bd0e (diff)
downloadlinux-353c2ea735e4b54fb6250861e67b51b1bcb47198.tar.gz
linux-353c2ea735e4b54fb6250861e67b51b1bcb47198.tar.bz2
linux-353c2ea735e4b54fb6250861e67b51b1bcb47198.zip
btrfs: remove redundant readonly root check in btrfs_setxattr_trans
btrfs_setxattr_trans() is called by 5 functions as below and all of them do updates. None of them would be roun on a read-only root. So its ok to remove the readonly root check here as it's a high-level conditon. 1. __btrfs_set_acl() btrfs_init_acl() btrfs_init_inode_security() 2. __btrfs_set_acl() btrfs_set_acl() 3. btrfs_set_prop() btrfs_set_prop_trans() / \ btrfs_ioctl_setflags() btrfs_xattr_handler_set_prop() 4. btrfs_xattr_handler_set() 5. btrfs_initxattrs() btrfs_xattr_security_init() btrfs_init_inode_security() Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/acl.c')
0 files changed, 0 insertions, 0 deletions