diff options
author | Anand Jain <anand.jain@oracle.com> | 2019-04-12 16:02:59 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:44 +0200 |
commit | e3de9b159a927fc1fd65e4d090b981b781c58926 (patch) | |
tree | 1d9586278f68a8593f681d5c0c36d049001f0fae /fs/btrfs/acl.c | |
parent | 04e6863b19c72279bcbeffa26d85d649ab9c8205 (diff) | |
download | linux-e3de9b159a927fc1fd65e4d090b981b781c58926.tar.gz linux-e3de9b159a927fc1fd65e4d090b981b781c58926.tar.bz2 linux-e3de9b159a927fc1fd65e4d090b981b781c58926.zip |
btrfs: cleanup btrfs_setxattr_trans and drop transaction parameter
Previous patch made sure that btrfs_setxattr_trans() is called only when
transaction NULL. Clean up btrfs_setxattr_trans() and drop the
parameter.
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')
-rw-r--r-- | fs/btrfs/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index 7fe6551bc59b..a0af1b952c4d 100644 --- a/fs/btrfs/acl.c +++ b/fs/btrfs/acl.c @@ -96,7 +96,7 @@ static int __btrfs_set_acl(struct btrfs_trans_handle *trans, if (trans) ret = btrfs_setxattr(trans, inode, name, value, size, 0); else - ret = btrfs_setxattr_trans(NULL, inode, name, value, size, 0); + ret = btrfs_setxattr_trans(inode, name, value, size, 0); out: kfree(value); |