Anand Jain
ff9fef559b
btrfs: start transaction in btrfs_ioctl_setflags()
...
Inode attribute can be set through the FS_IOC_SETFLAGS ioctl. This
flags also includes compression attribute for which we would set/reset
the compression extended attribute. While doing this there is a bit of
duplicate code, the following things happens twice:
- start/end_transaction
- inode_inc_iversion()
- current_time update to inode->i_ctime
- and btrfs_update_inode()
These are updated both at btrfs_ioctl_setflags() and btrfs_set_props()
as well. This patch merges these two duplicate codes at
btrfs_ioctl_setflags().
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:53 +02:00
..
2019-04-29 19:02:46 +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:51 +02:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:52 +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:52 +02:00
2019-04-29 19:02:52 +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-04-29 19:02:51 +02:00
2019-04-29 19:02:51 +02:00
2019-04-29 19:02:48 +02:00
2019-04-29 19:02:43 +02:00
2019-04-29 19:02:50 +02:00
2019-04-29 19:02:47 +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:51 +02:00
2019-04-29 19:02:47 +02:00
2019-04-29 19:02:38 +02:00
2019-02-25 14:13:21 +01:00
2019-04-29 19:02:51 +02:00
2019-04-29 19:02:52 +02:00
2019-04-29 19:02:49 +02:00
2019-04-29 19:02:46 +02:00
2019-04-29 19:02:46 +02:00
2019-04-29 19:02:46 +02:00
2019-04-29 19:02:46 +02:00
2019-04-29 19:02:50 +02:00
2018-08-06 13:12:43 +02:00
2018-04-12 16:29:46 +02:00
2019-04-29 19:02:52 +02:00
2019-04-29 19:02:53 +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:53 +02:00
2019-04-29 19:02:53 +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-04-29 19:02:49 +02:00
2019-04-29 19:02:49 +02:00
2019-04-29 19:02:49 +02:00
2019-04-29 19:02:17 +02:00
2019-04-29 19:02:47 +02:00
2019-04-29 19:02:52 +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:52 +02:00
2019-04-29 19:02:39 +02:00
2019-02-25 14:13:27 +01:00
2019-04-29 19:02:52 +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:50 +02:00
2019-04-29 19:02:48 +02:00
2019-04-29 19:02:48 +02:00
2019-04-29 19:02:52 +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