Lines Matching refs:fhp
94 const struct fh_key * const fhp = key;
97 if (pnp->fh_mount != fhp->fhk_mount)
98 return (intptr_t)pnp->fh_mount - (intptr_t)fhp->fhk_mount;
99 if (pnp->fh_dircluster != fhp->fhk_dircluster)
100 return pnp->fh_dircluster - fhp->fhk_dircluster;
101 return pnp->fh_diroffset - fhp->fhk_diroffset;
652 struct fh_node *fhp;
659 fhp = rb_tree_find_node(&fh_rbtree, &fhkey);
660 if (fhp == NULL) {
662 fhp = pool_get(&fh_pool, PR_WAITOK);
664 fhp->fh_key = fhkey;
665 fhp->fh_gen = fh_generation++;
666 rb_tree_insert_node(&fh_rbtree, fhp);
668 *genp = fhp->fh_gen;
678 struct fh_node *fhp;
685 fhp = rb_tree_find_node(&fh_rbtree, &fhkey);
686 if (fhp == NULL) {
690 rb_tree_remove_node(&fh_rbtree, fhp);
692 pool_put(&fh_pool, fhp);
701 struct fh_node *fhp;
708 fhp = rb_tree_find_node(&fh_rbtree, &fhkey);
709 if (fhp == NULL) {
713 *genp = fhp->fh_gen;
722 struct fh_node *fhp, *nfhp;
729 for (fhp = rb_tree_find_node_geq(&fh_rbtree, &fhkey);
730 fhp != NULL && fhp->fh_mount == pmp; fhp = nfhp) {
731 nfhp = rb_tree_iterate(&fh_rbtree, fhp, RB_DIR_RIGHT);
732 rb_tree_remove_node(&fh_rbtree, fhp);
733 pool_put(&fh_pool, fhp);
736 RB_TREE_FOREACH(fhp, &fh_rbtree) {
737 KASSERT(fhp->fh_mount != pmp);