summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/acl.h
diff options
context:
space:
mode:
authorAl Viro2016-05-13 03:59:17 +0200
committerAl Viro2016-05-13 04:28:05 +0200
commit1a39ba99b5d533647c5dac45cd6a3e0baa7cb66a (patch)
tree24f0508c7d380168e333f9ee8921d8b8550f9ef6 /fs/gfs2/acl.h
parentceph: kill __ceph_removexattr() (diff)
downloadkernel-qcow2-linux-1a39ba99b5d533647c5dac45cd6a3e0baa7cb66a.tar.gz
kernel-qcow2-linux-1a39ba99b5d533647c5dac45cd6a3e0baa7cb66a.tar.xz
kernel-qcow2-linux-1a39ba99b5d533647c5dac45cd6a3e0baa7cb66a.zip
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>
Diffstat (limited to 'fs/gfs2/acl.h')
-rw-r--r--fs/gfs2/acl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/acl.h b/fs/gfs2/acl.h
index 3af4f407a483..f674fdd22337 100644
--- a/fs/gfs2/acl.h
+++ b/fs/gfs2/acl.h
@@ -15,6 +15,7 @@
#define GFS2_ACL_MAX_ENTRIES(sdp) ((300 << (sdp)->sd_sb.sb_bsize_shift) >> 12)
extern struct posix_acl *gfs2_get_acl(struct inode *inode, int type);
+extern int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
extern int gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
#endif /* __ACL_DOT_H__ */