• Home
  • Raw
  • Download

Lines Matching refs:nfsacl_desc

51 	struct nfsacl_encode_desc *nfsacl_desc =  in xdr_nfsace_encode()  local
56 &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_encode()
58 *p++ = htonl(entry->e_tag | nfsacl_desc->typeflag); in xdr_nfsace_encode()
61 *p++ = htonl(from_kuid(&init_user_ns, nfsacl_desc->uid)); in xdr_nfsace_encode()
64 *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); in xdr_nfsace_encode()
96 struct nfsacl_encode_desc nfsacl_desc = { in nfsacl_encode() local
129 nfsacl_desc.acl = acl2; in nfsacl_encode()
131 err = xdr_encode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_encode()
133 err = 8 + nfsacl_desc.desc.elem_size * in nfsacl_encode()
134 nfsacl_desc.desc.array_len; in nfsacl_encode()
148 struct nfsacl_decode_desc *nfsacl_desc = in xdr_nfsace_decode() local
154 if (!nfsacl_desc->acl) { in xdr_nfsace_decode()
157 nfsacl_desc->acl = posix_acl_alloc(desc->array_len, GFP_KERNEL); in xdr_nfsace_decode()
158 if (!nfsacl_desc->acl) in xdr_nfsace_decode()
160 nfsacl_desc->count = 0; in xdr_nfsace_decode()
163 entry = &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_decode()
268 struct nfsacl_decode_desc nfsacl_desc = { in nfsacl_decode() local
280 nfsacl_desc.desc.array_maxlen = entries; in nfsacl_decode()
281 err = xdr_decode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_decode()
285 if (entries != nfsacl_desc.desc.array_len || in nfsacl_decode()
286 posix_acl_from_nfsacl(nfsacl_desc.acl) != 0) { in nfsacl_decode()
287 posix_acl_release(nfsacl_desc.acl); in nfsacl_decode()
290 *pacl = nfsacl_desc.acl; in nfsacl_decode()
294 return 8 + nfsacl_desc.desc.elem_size * in nfsacl_decode()
295 nfsacl_desc.desc.array_len; in nfsacl_decode()