Lines Matching refs:entry
55 struct posix_acl_entry *entry = in xdr_nfsace_encode() local
58 *p++ = htonl(entry->e_tag | nfsacl_desc->typeflag); in xdr_nfsace_encode()
59 switch(entry->e_tag) { in xdr_nfsace_encode()
67 *p++ = htonl(from_kuid(&init_user_ns, entry->e_uid)); in xdr_nfsace_encode()
70 *p++ = htonl(from_kgid(&init_user_ns, entry->e_gid)); in xdr_nfsace_encode()
76 *p++ = htonl(entry->e_perm & S_IRWXO); in xdr_nfsace_encode()
151 struct posix_acl_entry *entry; in xdr_nfsace_decode() local
163 entry = &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_decode()
164 entry->e_tag = ntohl(*p++) & ~NFS_ACL_DEFAULT; in xdr_nfsace_decode()
166 entry->e_perm = ntohl(*p++); in xdr_nfsace_decode()
168 switch(entry->e_tag) { in xdr_nfsace_decode()
170 entry->e_uid = make_kuid(&init_user_ns, id); in xdr_nfsace_decode()
171 if (!uid_valid(entry->e_uid)) in xdr_nfsace_decode()
175 entry->e_gid = make_kgid(&init_user_ns, id); in xdr_nfsace_decode()
176 if (!gid_valid(entry->e_gid)) in xdr_nfsace_decode()
182 if (entry->e_perm & ~S_IRWXO) in xdr_nfsace_decode()
187 entry->e_perm &= S_IRWXO; in xdr_nfsace_decode()