diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2016-04-22 22:36:44 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-18 01:17:09 +0200 |
commit | e0d46f5c6e0ba3a79e64cd60e62b7b7191ed93f3 (patch) | |
tree | cd90dbd2f6a4454db626ce24d8600544d8ae493f /fs/btrfs/xattr.h | |
parent | ubifs: Switch to generic xattr handlers (diff) | |
download | linux-e0d46f5c6e0ba3a79e64cd60e62b7b7191ed93f3.tar.xz linux-e0d46f5c6e0ba3a79e64cd60e62b7b7191ed93f3.zip |
btrfs: Switch to generic xattr handlers
The btrfs_{set,remove}xattr inode operations check for a read-only root
(btrfs_root_readonly) before calling into generic_{set,remove}xattr. If
this check is moved into __btrfs_setxattr, we can get rid of
btrfs_{set,remove}xattr.
This patch applies to mainline, I would like to keep it together with
the other xattr cleanups if possible, though. Could you please review?
Thanks,
Andreas
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/xattr.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/xattr.h b/fs/btrfs/xattr.h index 96807b3d22f5..15fc4743dc70 100644 --- a/fs/btrfs/xattr.h +++ b/fs/btrfs/xattr.h @@ -28,9 +28,6 @@ extern ssize_t __btrfs_getxattr(struct inode *inode, const char *name, extern int __btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags); -extern int btrfs_setxattr(struct dentry *dentry, const char *name, - const void *value, size_t size, int flags); -extern int btrfs_removexattr(struct dentry *dentry, const char *name); extern int btrfs_xattr_security_init(struct btrfs_trans_handle *trans, struct inode *inode, struct inode *dir, |