Commit 3e125a74 authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

btrfs: export btrfs_setxattr



Preparatory patch, as we are going split the calls with and without
transaction to use the respective btrfs_setxattr() and
btrfs_setxattr_trans() functions. Export btrfs_setxattr() for calls
outside of xattr.c.

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2d74fa3e
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -76,9 +76,8 @@ out:
	return ret;
}

static 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(struct btrfs_trans_handle *trans, struct inode *inode,
		   const char *name, const void *value, size_t size, int flags)
{
	struct btrfs_dir_item *di = NULL;
	struct btrfs_root *root = BTRFS_I(inode)->root;
+2 −0
Original line number Diff line number Diff line
@@ -12,6 +12,8 @@ extern const struct xattr_handler *btrfs_xattr_handlers[];

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);