Lines Matching refs:acl
31 struct posix_acl *acl; in xfs_acl_from_disk() local
41 acl = posix_acl_alloc(count, GFP_KERNEL); in xfs_acl_from_disk()
42 if (!acl) in xfs_acl_from_disk()
46 acl_e = &acl->a_entries[i]; in xfs_acl_from_disk()
74 return acl; in xfs_acl_from_disk()
77 posix_acl_release(acl); in xfs_acl_from_disk()
82 xfs_acl_to_disk(struct xfs_acl *aclp, const struct posix_acl *acl) in xfs_acl_to_disk() argument
88 aclp->acl_cnt = cpu_to_be32(acl->a_count); in xfs_acl_to_disk()
89 for (i = 0; i < acl->a_count; i++) { in xfs_acl_to_disk()
91 acl_e = &acl->a_entries[i]; in xfs_acl_to_disk()
114 struct posix_acl *acl = NULL; in xfs_get_acl() local
146 acl = ERR_PTR(error); in xfs_get_acl()
148 acl = xfs_acl_from_disk(xfs_acl, len, in xfs_get_acl()
152 return acl; in xfs_get_acl()
156 __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type) in __xfs_set_acl() argument
168 return acl ? -EACCES : 0; in __xfs_set_acl()
175 if (acl) { in __xfs_set_acl()
183 xfs_acl_to_disk(xfs_acl, acl); in __xfs_set_acl()
187 (XFS_ACL_MAX_ENTRIES(ip->i_mount) - acl->a_count); in __xfs_set_acl()
207 set_cached_acl(inode, type, acl); in __xfs_set_acl()
230 xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type) in xfs_set_acl() argument
236 if (!acl) in xfs_set_acl()
240 if (acl->a_count > XFS_ACL_MAX_ENTRIES(XFS_M(inode->i_sb))) in xfs_set_acl()
244 error = posix_acl_update_mode(inode, &mode, &acl); in xfs_set_acl()
251 error = __xfs_set_acl(inode, acl, type); in xfs_set_acl()