Lines Matching refs:he
163 struct idmap_hashent *he = idmap_name_hash(h, name, len);
165 if (he->ih_namelen != len || memcmp(he->ih_name, name, len) != 0)
167 if (time_after(jiffies, he->ih_expires))
169 return he;
181 struct idmap_hashent *he = idmap_id_hash(h, id);
182 if (he->ih_id != id || he->ih_namelen == 0)
184 if (time_after(jiffies, he->ih_expires))
186 return he;
207 idmap_update_entry(struct idmap_hashent *he, const char *name,
210 he->ih_id = id;
211 memcpy(he->ih_name, name, namelen);
212 he->ih_name[namelen] = '\0';
213 he->ih_namelen = namelen;
214 he->ih_expires = jiffies + nfs_idmap_cache_timeout;
226 struct idmap_hashent *he;
249 he = idmap_lookup_name(h, name, namelen);
250 if (he != NULL) {
251 *id = he->ih_id;
300 struct idmap_hashent *he;
310 he = idmap_lookup_id(h, id);
311 if (he != 0) {
312 memcpy(name, he->ih_name, he->ih_namelen);
313 ret = he->ih_namelen;
384 struct idmap_hashent *he = NULL;
432 he = idmap_alloc_id(h, im_in.im_id);
443 he = idmap_alloc_name(h, im_in.im_name, namelen_in);
450 if (he != NULL)
451 idmap_update_entry(he, im_in.im_name, namelen_in, im_in.im_id);