xattr: Add __vfs_{get,set,remove}xattr helpers
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 29 Sep 2016 15:48:42 +0000 (17:48 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 8 Oct 2016 00:10:44 +0000 (20:10 -0400)
commit5d6c31910bc0713e37628dc0ce677dcb13c8ccf4
treea28f96e71f09da2fbbde50882d56e5d5657c0ede
parentf5c244383725a6de06bc62fa7c54c0ea0d942eec
xattr: Add __vfs_{get,set,remove}xattr helpers

Right now, various places in the kernel check for the existence of
getxattr, setxattr, and removexattr inode operations and directly call
those operations.  Switch to helper functions and test for the IOP_XATTR
flag instead.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
14 files changed:
fs/cachefiles/bind.c
fs/cachefiles/namei.c
fs/ecryptfs/inode.c
fs/ecryptfs/mmap.c
fs/overlayfs/copy_up.c
fs/overlayfs/super.c
fs/xattr.c
include/linux/xattr.h
security/commoncap.c
security/integrity/evm/evm_crypto.c
security/integrity/evm/evm_main.c
security/integrity/ima/ima_appraise.c
security/selinux/hooks.c
security/smack/smack_lsm.c