Lines Matching defs:pacl
134 struct posix_acl *pacl = NULL, *dpacl = NULL;
138 pacl = get_inode_acl(inode, ACL_TYPE_ACCESS);
139 if (!pacl)
140 pacl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL);
142 if (IS_ERR(pacl))
143 return PTR_ERR(pacl);
146 size += 2 * pacl->a_count;
167 _posix_to_nfsv4_one(pacl, *acl, flags & ~NFS4_ACL_TYPE_DEFAULT);
175 posix_acl_release(pacl);
233 _posix_to_nfsv4_one(struct posix_acl *pacl, struct nfs4_acl *acl,
243 BUG_ON(pacl->a_count < 3);
244 summarize_posix_acl(pacl, &pas);
246 pa = pacl->a_entries;
375 sort_pacl_range(struct posix_acl *pacl, int start, int end) {
383 if (pace_gt(&pacl->a_entries[i],
384 &pacl->a_entries[i+1])) {
386 swap(pacl->a_entries[i],
387 pacl->a_entries[i + 1]);
394 sort_pacl(struct posix_acl *pacl)
401 if (!pacl || pacl->a_count <= 4)
405 while (pacl->a_entries[i].e_tag == ACL_USER)
407 sort_pacl_range(pacl, 1, i-1);
409 BUG_ON(pacl->a_entries[i].e_tag != ACL_GROUP_OBJ);
411 while (pacl->a_entries[j].e_tag == ACL_GROUP)
413 sort_pacl_range(pacl, i, j-1);
493 struct posix_acl *pacl;
514 pacl = posix_acl_alloc(nace, GFP_KERNEL);
515 if (!pacl)
518 pace = pacl->a_entries;
555 return pacl;
693 struct posix_acl **pacl, struct posix_acl **dpacl,
753 *pacl = posix_state_to_acl(&effective_acl_state, flags);
754 if (IS_ERR(*pacl)) {
755 ret = PTR_ERR(*pacl);
756 *pacl = NULL;
764 posix_acl_release(*pacl);
765 *pacl = NULL;
768 sort_pacl(*pacl);