Searched refs:nfsacl_desc (Results 1 - 1 of 1) sorted by relevance

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

Completed in 46 milliseconds