Lines Matching refs:nfsacl_desc
50 struct nfsacl_encode_desc *nfsacl_desc = in xdr_nfsace_encode() local
55 &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_encode()
57 *p++ = htonl(entry->e_tag | nfsacl_desc->typeflag); in xdr_nfsace_encode()
60 *p++ = htonl(from_kuid(&init_user_ns, nfsacl_desc->uid)); in xdr_nfsace_encode()
63 *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); in xdr_nfsace_encode()
95 struct nfsacl_encode_desc nfsacl_desc = { in nfsacl_encode() local
128 nfsacl_desc.acl = acl2; in nfsacl_encode()
130 err = xdr_encode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_encode()
132 err = 8 + nfsacl_desc.desc.elem_size * in nfsacl_encode()
133 nfsacl_desc.desc.array_len; in nfsacl_encode()
147 struct nfsacl_decode_desc *nfsacl_desc = in xdr_nfsace_decode() local
153 if (!nfsacl_desc->acl) { in xdr_nfsace_decode()
156 nfsacl_desc->acl = posix_acl_alloc(desc->array_len, GFP_KERNEL); in xdr_nfsace_decode()
157 if (!nfsacl_desc->acl) in xdr_nfsace_decode()
159 nfsacl_desc->count = 0; in xdr_nfsace_decode()
162 entry = &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_decode()
267 struct nfsacl_decode_desc nfsacl_desc = { in nfsacl_decode() local
279 nfsacl_desc.desc.array_maxlen = entries; in nfsacl_decode()
280 err = xdr_decode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_decode()
284 if (entries != nfsacl_desc.desc.array_len || in nfsacl_decode()
285 posix_acl_from_nfsacl(nfsacl_desc.acl) != 0) { in nfsacl_decode()
286 posix_acl_release(nfsacl_desc.acl); in nfsacl_decode()
289 *pacl = nfsacl_desc.acl; in nfsacl_decode()
293 return 8 + nfsacl_desc.desc.elem_size * in nfsacl_decode()
294 nfsacl_desc.desc.array_len; in nfsacl_decode()