xattr: add a function to check if a namespace is supported
authorFrank van der Linden <fllinden@amazon.com>
Tue, 23 Jun 2020 22:39:19 +0000 (22:39 +0000)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 13 Jul 2020 21:27:03 +0000 (17:27 -0400)
commitcab8d289c5ad541a5351a651d95c4086b7f84d7c
tree6c30bbee0157751414bb2e12665e1fcc6284e12b
parent08b5d5014a27e717826999ad20e394a8811aae92
xattr: add a function to check if a namespace is supported

Add a function that checks is an extended attribute namespace is
supported for an inode, meaning that a handler must be present
for either the whole namespace, or at least one synthetic
xattr in the namespace.

To be used by the nfs server code when being queried for extended
attributes support.

Cc: linux-fsdevel@vger.kernel.org
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Frank van der Linden <fllinden@amazon.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/xattr.c
include/linux/xattr.h