diff options
author | Anand Jain | 2019-04-20 19:48:53 +0800 |
---|---|---|
committer | David Sterba | 2019-04-29 19:02:53 +0200 |
commit | ff9fef559babe4376dd698ceec3d73d0362e48a0 (patch) | |
tree | 15913c623084cb9ceb1e7daf4a4dab9651752d92 /block | |
parent | cd31af158b324e5a1f03b53fb46a1e10cde238ab (diff) |
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions