Anand Jain
353c2ea735
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 >
2019-04-29 19:02:44 +02:00
..
2019-04-29 19:02:32 +02:00
2019-04-29 19:02:44 +02:00
2019-02-25 14:13:24 +01:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:28 +02:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:29 +02:00
2018-12-17 14:51:50 +01:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:24 +02:00
2019-02-25 14:13:32 +01:00
2019-04-29 19:02:42 +02:00
2019-04-29 19:02:40 +02:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:30 +02:00
2018-10-15 17:23:33 +02:00
2019-02-25 14:13:39 +01:00
2019-02-25 14:13:39 +01:00
2019-04-29 19:02:43 +02:00
2019-04-29 19:02:43 +02:00
2018-10-15 17:23:25 +02:00
2019-04-29 19:02:41 +02:00
2019-04-29 19:02:41 +02:00
2018-10-15 17:23:25 +02:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:38 +02:00
2019-04-29 19:02:38 +02:00
2019-04-29 19:02:38 +02:00
2019-02-25 14:13:21 +01:00
2019-04-29 19:02:43 +02:00
2019-04-29 19:02:40 +02:00
2019-04-29 19:02:39 +02:00
2019-04-29 19:02:41 +02:00
2019-04-29 19:02:41 +02:00
2019-04-29 19:02:41 +02:00
2018-05-28 18:07:36 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:43 +02:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:41 +02:00
2019-04-29 19:02:29 +02:00
2018-04-12 16:29:55 +02:00
2019-04-29 19:02:43 +02:00
2019-02-25 14:13:28 +01:00
2019-02-25 14:13:32 +01:00
2018-03-26 15:09:39 +02:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:40 +02:00
2019-04-29 19:02:40 +02:00
2018-04-12 16:29:51 +02:00
2019-04-29 19:02:30 +02:00
2018-04-20 19:18:16 +02:00
2019-04-29 19:02:44 +02:00
2019-04-29 19:02:19 +02:00
2019-04-29 19:02:41 +02:00
2019-02-25 14:13:39 +01:00
2019-03-26 10:32:13 -07:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:45 +01:00
2019-02-25 14:13:27 +01:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:40 +02:00
2019-04-29 19:02:17 +02:00
2019-04-29 19:02:17 +02:00
2019-04-29 19:02:35 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:43 +02:00
2019-04-29 19:02:35 +02:00
2018-12-17 14:51:37 +01:00
2018-12-17 14:51:43 +01:00
2019-04-29 19:02:43 +02:00
2019-04-29 19:02:43 +02:00
2019-04-29 19:02:39 +02:00
2019-04-29 19:02:39 +02:00
2019-02-25 14:13:27 +01:00
2019-04-29 19:02:41 +02:00
2019-04-29 19:02:41 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:19 +02:00
2019-04-29 19:02:43 +02:00
2019-04-29 19:02:43 +02:00
2019-04-29 19:02:44 +02:00
2019-04-29 19:02:44 +02:00
2019-02-25 14:13:32 +01:00
2019-04-29 19:02:18 +02:00