]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f165cb44a63928be1232c64cba3bc52fa75b9c8
tree24f0508c7d380168e333f9ee8921d8b8550f9ef6
parentc1fffc5c70ca6fbc6473ed77fd462689f1896def
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