Lines Matching full:np

135 	struct p9fs_node *np, *pnp, *tmp;  in p9fs_prepare_to_close()  local
141 STAILQ_FOREACH_SAFE(np, &vses->virt_node_list, p9fs_node_next, tmp) { in p9fs_prepare_to_close()
142 if (np->parent && np->parent != np) { in p9fs_prepare_to_close()
143 pnp = np->parent; in p9fs_prepare_to_close()
144 np->parent = NULL; in p9fs_prepare_to_close()
190 p9fs_fid_remove_all(struct p9fs_node *np, int leave_ofids) in p9fs_fid_remove_all() argument
194 STAILQ_FOREACH_SAFE(fid, &np->vfid_list, fid_next, tfid) { in p9fs_fid_remove_all()
195 STAILQ_REMOVE(&np->vfid_list, fid, p9_fid, fid_next); in p9fs_fid_remove_all()
200 STAILQ_FOREACH_SAFE(fid, &np->vofid_list, fid_next, tfid) { in p9fs_fid_remove_all()
201 STAILQ_REMOVE(&np->vofid_list, fid, p9_fid, fid_next); in p9fs_fid_remove_all()
210 p9fs_fid_remove(struct p9fs_node *np, struct p9_fid *fid, int fid_type) in p9fs_fid_remove() argument
215 P9FS_VFID_LOCK(np); in p9fs_fid_remove()
216 STAILQ_REMOVE(&np->vfid_list, fid, p9_fid, fid_next); in p9fs_fid_remove()
217 P9FS_VFID_UNLOCK(np); in p9fs_fid_remove()
220 P9FS_VOFID_LOCK(np); in p9fs_fid_remove()
221 STAILQ_REMOVE(&np->vofid_list, fid, p9_fid, fid_next); in p9fs_fid_remove()
222 P9FS_VOFID_UNLOCK(np); in p9fs_fid_remove()
229 p9fs_fid_add(struct p9fs_node *np, struct p9_fid *fid, int fid_type) in p9fs_fid_add() argument
234 P9FS_VFID_LOCK(np); in p9fs_fid_add()
235 STAILQ_INSERT_TAIL(&np->vfid_list, fid, fid_next); in p9fs_fid_add()
236 P9FS_VFID_UNLOCK(np); in p9fs_fid_add()
239 P9FS_VOFID_LOCK(np); in p9fs_fid_add()
240 STAILQ_INSERT_TAIL(&np->vofid_list, fid, fid_next); in p9fs_fid_add()
241 P9FS_VOFID_UNLOCK(np); in p9fs_fid_add()
248 p9fs_get_full_path(struct p9fs_node *np, char ***names) in p9fs_get_full_path() argument
255 for (node = np ; (node != NULL) && !IS_ROOT(node) ; node = node->parent) in p9fs_get_full_path()
263 for (i = n-1, node = np; i >= 0 ; i--, node = node->parent) in p9fs_get_full_path()
296 p9fs_get_fid_from_uid(struct p9fs_node *np, uid_t uid, int fid_type, int mode) in p9fs_get_fid_from_uid() argument
302 P9FS_VFID_LOCK(np); in p9fs_get_fid_from_uid()
303 STAILQ_FOREACH(fid, &np->vfid_list, fid_next) { in p9fs_get_fid_from_uid()
305 P9FS_VFID_UNLOCK(np); in p9fs_get_fid_from_uid()
309 P9FS_VFID_UNLOCK(np); in p9fs_get_fid_from_uid()
312 P9FS_VOFID_LOCK(np); in p9fs_get_fid_from_uid()
313 STAILQ_FOREACH(fid, &np->vofid_list, fid_next) { in p9fs_get_fid_from_uid()
315 P9FS_VOFID_UNLOCK(np); in p9fs_get_fid_from_uid()
319 P9FS_VOFID_UNLOCK(np); in p9fs_get_fid_from_uid()
335 p9fs_get_fid(struct p9_client *clnt, struct p9fs_node *np, struct ucred *cred, in p9fs_get_fid() argument
347 vses = np->p9fs_ses; in p9fs_get_fid()
362 fid = p9fs_get_fid_from_uid(np, uid, fid_type, mode); in p9fs_get_fid()
367 root = &np->p9fs_ses->rnp; in p9fs_get_fid()
379 if (IS_ROOT(np)) in p9fs_get_fid()
383 nwnames = p9fs_get_full_path(np, &wnames); in p9fs_get_fid()
389 KASSERT(nwnames != 0, ("%s: Directory of %s doesn't exist", __func__, np->inode.i_name)); in p9fs_get_fid()
407 p9fs_fid_add(np, fid, fid_type); in p9fs_get_fid()