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

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
...@@ -76,9 +76,8 @@ int btrfs_getxattr(struct inode *inode, const char *name, ...@@ -76,9 +76,8 @@ int btrfs_getxattr(struct inode *inode, const char *name,
return ret; return ret;
} }
static int btrfs_setxattr(struct btrfs_trans_handle *trans, int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode,
struct inode *inode, const char *name, const char *name, const void *value, size_t size, int flags)
const void *value, size_t size, int flags)
{ {
struct btrfs_dir_item *di = NULL; struct btrfs_dir_item *di = NULL;
struct btrfs_root *root = BTRFS_I(inode)->root; struct btrfs_root *root = BTRFS_I(inode)->root;
......
...@@ -12,6 +12,8 @@ extern const struct xattr_handler *btrfs_xattr_handlers[]; ...@@ -12,6 +12,8 @@ extern const struct xattr_handler *btrfs_xattr_handlers[];
int btrfs_getxattr(struct inode *inode, const char *name, int btrfs_getxattr(struct inode *inode, const char *name,
void *buffer, size_t size); 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, int btrfs_setxattr_trans(struct btrfs_trans_handle *trans,
struct inode *inode, const char *name, struct inode *inode, const char *name,
const void *value, size_t size, int flags); const void *value, size_t size, int flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment