]> 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)
commit90d63cf3426ff18b6e693d64294d65e382633aba
tree24f0508c7d380168e333f9ee8921d8b8550f9ef6
parent62ad0c065620940c3df1226127c7af50327c76ad
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