Lines Matching refs:acl
42 struct posix_acl *acl; in __gfs2_get_acl() local
54 acl = posix_acl_from_xattr(&init_user_ns, data, len); in __gfs2_get_acl()
56 return acl; in __gfs2_get_acl()
64 struct posix_acl *acl; in gfs2_get_acl() local
73 acl = __gfs2_get_acl(inode, type); in gfs2_get_acl()
76 return acl; in gfs2_get_acl()
79 int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) in __gfs2_set_acl() argument
86 if (acl) { in __gfs2_set_acl()
87 len = posix_acl_xattr_size(acl->a_count); in __gfs2_set_acl()
91 error = posix_acl_to_xattr(&init_user_ns, acl, data, len); in __gfs2_set_acl()
102 set_cached_acl(inode, type, acl); in __gfs2_set_acl()
108 int gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) in gfs2_set_acl() argument
116 if (acl && acl->a_count > GFS2_ACL_MAX_ENTRIES(GFS2_SB(inode))) in gfs2_set_acl()
131 if (type == ACL_TYPE_ACCESS && acl) { in gfs2_set_acl()
132 ret = posix_acl_update_mode(inode, &mode, &acl); in gfs2_set_acl()
137 ret = __gfs2_set_acl(inode, acl, type); in gfs2_set_acl()