gfs2: Switch to generic xattr handlers
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 13 May 2016 01:59:17 +0000 (03:59 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 13 May 2016 02:28:05 +0000 (22:28 -0400)
commit1a39ba99b5d533647c5dac45cd6a3e0baa7cb66a
tree24f0508c7d380168e333f9ee8921d8b8550f9ef6
parentb971e94e8f4c09ff775cfb2c4f846b4431a00598
gfs2: Switch to generic xattr handlers

Switch to the generic xattr handlers and take the necessary glocks at
the layer below. The following are the new xattr "entry points"; they
are called with the glock held already in the following cases:

  gfs2_xattr_get: From SELinux, during lookups.
  gfs2_xattr_set: The glock is never held.
  gfs2_get_acl: From gfs2_create_inode -> posix_acl_create and
                gfs2_setattr -> posix_acl_chmod.
  gfs2_set_acl: From gfs2_setattr -> posix_acl_chmod.

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