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/xattr.h | |
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/xattr.h')
-rw-r--r-- | fs/btrfs/xattr.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/xattr.h b/fs/btrfs/xattr.h index a95834cc3c04..1cd3fc0a8f17 100644 --- a/fs/btrfs/xattr.h +++ b/fs/btrfs/xattr.h @@ -14,9 +14,8 @@ int btrfs_getxattr(struct inode *inode, const char *name, void *buffer, size_t size); int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags); -int btrfs_setxattr_trans(struct btrfs_trans_handle *trans, - struct inode *inode, const char *name, - const void *value, size_t size, int flags); +int btrfs_setxattr_trans(struct inode *inode, const char *name, + const void *value, size_t size, int flags); ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size); int btrfs_xattr_security_init(struct btrfs_trans_handle *trans, |