btrfs: Switch to generic xattr handlers
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 22 Apr 2016 20:36:44 +0000 (22:36 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 17 May 2016 23:17:09 +0000 (19:17 -0400)
commite0d46f5c6e0ba3a79e64cd60e62b7b7191ed93f3
treecd90dbd2f6a4454db626ce24d8600544d8ae493f
parent2b88fc21cae91e925bc5e361e6ea67467b471da5
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>
fs/btrfs/inode.c
fs/btrfs/xattr.c
fs/btrfs/xattr.h