vfs: Add IOP_XATTR inode operations flag
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 29 Sep 2016 15:48:39 +0000 (17:48 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 8 Oct 2016 00:10:42 +0000 (20:10 -0400)
commitd0a5b995a308347fdb1bb0412df32acd0312523b
tree080efa7c4513aa0e42e9e65c75260546f9b303ac
parentb6ba11773d9535fbe068232f2231c99740bb32db
vfs: Add IOP_XATTR inode operations flag

The IOP_XATTR inode operations flag in inode->i_opflags indicates that
the inode has xattr support.  The flag is automatically set by
new_inode() on filesystems with xattr support (where sb->s_xattr is
defined), and cleared otherwise.  Filesystems can explicitly clear it
for inodes that should not have xattr support.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/inode.c
fs/xattr.c
include/linux/fs.h