summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/xattr.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2019-03-01 05:34:47 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:19 +0200
commit7715da84f74d5d3fed45ad69b2b5e28601ad721f (patch)
treef898cf5de2315d8cc22e4b0160ef09442b079af9 /fs/btrfs/xattr.c
parentbtrfs: reduce kmap_atomic time for checksumming (diff)
downloadlinux-7715da84f74d5d3fed45ad69b2b5e28601ad721f.tar.xz
linux-7715da84f74d5d3fed45ad69b2b5e28601ad721f.zip
btrfs: merge _btrfs_set_prop helpers
btrfs_set_prop() is a redirect to __btrfs_set_prop() with the transaction handle equal to NULL. __btrfs_set_prop() in turn passes this to do_setxattr() which then transaction is actually created. Instead merge __btrfs_set_prop() to btrfs_set_prop(), and update the caller with NULL argument. 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.c')
-rw-r--r--fs/btrfs/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c
index f141b45ce349..499bb79ba135 100644
--- a/fs/btrfs/xattr.c
+++ b/fs/btrfs/xattr.c
@@ -379,7 +379,7 @@ static int btrfs_xattr_handler_set_prop(const struct xattr_handler *handler,
size_t size, int flags)
{
name = xattr_full_name(handler, name);
- return btrfs_set_prop(inode, name, value, size, flags);
+ return btrfs_set_prop(NULL, inode, name, value, size, flags);
}
static const struct xattr_handler btrfs_security_xattr_handler = {