Lines Matching refs:entry
54 struct posix_acl_entry *entry = in xdr_nfsace_encode() local
57 *p++ = htonl(entry->e_tag | nfsacl_desc->typeflag); in xdr_nfsace_encode()
58 switch(entry->e_tag) { in xdr_nfsace_encode()
66 *p++ = htonl(from_kuid(&init_user_ns, entry->e_uid)); in xdr_nfsace_encode()
69 *p++ = htonl(from_kgid(&init_user_ns, entry->e_gid)); in xdr_nfsace_encode()
75 *p++ = htonl(entry->e_perm & S_IRWXO); in xdr_nfsace_encode()
150 struct posix_acl_entry *entry; in xdr_nfsace_decode() local
162 entry = &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_decode()
163 entry->e_tag = ntohl(*p++) & ~NFS_ACL_DEFAULT; in xdr_nfsace_decode()
165 entry->e_perm = ntohl(*p++); in xdr_nfsace_decode()
167 switch(entry->e_tag) { in xdr_nfsace_decode()
169 entry->e_uid = make_kuid(&init_user_ns, id); in xdr_nfsace_decode()
170 if (!uid_valid(entry->e_uid)) in xdr_nfsace_decode()
174 entry->e_gid = make_kgid(&init_user_ns, id); in xdr_nfsace_decode()
175 if (!gid_valid(entry->e_gid)) in xdr_nfsace_decode()
181 if (entry->e_perm & ~S_IRWXO) in xdr_nfsace_decode()
186 entry->e_perm &= S_IRWXO; in xdr_nfsace_decode()