Lines Matching refs:acl
130 struct nfs4_acl **acl) in nfsd4_get_nfs4_acl() argument
160 *acl = kmalloc(nfs4_acl_bytes(size), GFP_KERNEL); in nfsd4_get_nfs4_acl()
161 if (*acl == NULL) { in nfsd4_get_nfs4_acl()
165 (*acl)->naces = 0; in nfsd4_get_nfs4_acl()
167 _posix_to_nfsv4_one(pacl, *acl, flags & ~NFS4_ACL_TYPE_DEFAULT); in nfsd4_get_nfs4_acl()
170 _posix_to_nfsv4_one(dpacl, *acl, flags | NFS4_ACL_TYPE_DEFAULT); in nfsd4_get_nfs4_acl()
189 summarize_posix_acl(struct posix_acl *acl, struct posix_acl_summary *pas) in summarize_posix_acl() argument
201 pe = acl->a_entries + acl->a_count; in summarize_posix_acl()
203 FOREACH_ACL_ENTRY(pa, acl, pe) { in summarize_posix_acl()
233 _posix_to_nfsv4_one(struct posix_acl *pacl, struct nfs4_acl *acl, in _posix_to_nfsv4_one() argument
247 ace = acl->aces + acl->naces; in _posix_to_nfsv4_one()
262 acl->naces++; in _posix_to_nfsv4_one()
270 acl->naces++; in _posix_to_nfsv4_one()
283 acl->naces++; in _posix_to_nfsv4_one()
292 acl->naces++; in _posix_to_nfsv4_one()
308 acl->naces++; in _posix_to_nfsv4_one()
319 acl->naces++; in _posix_to_nfsv4_one()
334 acl->naces++; in _posix_to_nfsv4_one()
348 acl->naces++; in _posix_to_nfsv4_one()
359 acl->naces++; in _posix_to_nfsv4_one()
692 static int nfs4_acl_nfsv4_to_posix(struct nfs4_acl *acl, in nfs4_acl_nfsv4_to_posix() argument
700 ret = init_state(&effective_acl_state, acl->naces); in nfs4_acl_nfsv4_to_posix()
703 ret = init_state(&default_acl_state, acl->naces); in nfs4_acl_nfsv4_to_posix()
707 for (ace = acl->aces; ace < acl->aces + acl->naces; ace++) { in nfs4_acl_nfsv4_to_posix()
756 struct nfs4_acl *acl) in nfsd4_set_nfs4_acl() argument
776 host_error = nfs4_acl_nfsv4_to_posix(acl, &pacl, &dpacl, flags); in nfsd4_set_nfs4_acl()