summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/xattr.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2016-04-22 22:36:44 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-17 19:17:09 -0400
commite0d46f5c6e0ba3a79e64cd60e62b7b7191ed93f3 (patch)
treecd90dbd2f6a4454db626ce24d8600544d8ae493f /fs/btrfs/xattr.h
parent2b88fc21cae91e925bc5e361e6ea67467b471da5 (diff)
downloadop-kernel-dev-e0d46f5c6e0ba3a79e64cd60e62b7b7191ed93f3.zip
op-kernel-dev-e0d46f5c6e0ba3a79e64cd60e62b7b7191ed93f3.tar.gz
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 'fs/btrfs/xattr.h')
-rw-r--r--fs/btrfs/xattr.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/xattr.h b/fs/btrfs/xattr.h
index 96807b3..15fc474 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,
OpenPOWER on IntegriCloud