Lines Matching refs:namenode
56 #include <sys/fs/namenode.h>
73 struct namenode *nm_filevp_hash[NM_FILEVP_HASH_SIZE];
126 * Insert a namenode into the nm_filevp_hash table.
128 * Each link has a unique namenode with a unique nm_mountvp field.
129 * The nm_filevp field of the namenode need not be unique, since a
135 nameinsert(struct namenode *nodep)
137 struct namenode **bucket;
147 * Remove a namenode from the hash table, if present.
150 nameremove(struct namenode *nodep)
152 struct namenode *np, **npp;
166 * Search for a namenode that has a nm_filevp == vp and nm_mountpt == mnt.
168 * Returns namenode pointer on success, NULL on failure.
170 struct namenode *
173 struct namenode *np;
190 * This routine searches the namenode hash list for all namenodes
206 struct namenode *nodep;
211 * For each namenode that is associated with the file:
313 struct namenode *nodep; /* namenode for this mount */
389 * If it's not, create a reference and allocate a namenode
397 nodep = kmem_zalloc(sizeof (struct namenode), KM_SLEEP);
435 * Initialize the namenode.
532 * Insert the namenode.
540 kmem_free(nodep, sizeof (struct namenode));
548 * Otherwise, remove the namenode from the hash list.
557 struct namenode *nodep = (struct namenode *)vfsp->vfs_data;
591 kmem_free(nodep, sizeof (struct namenode));
616 struct namenode *nodep = (struct namenode *)vfsp->vfs_data;
649 struct namenode *nodep;
654 nodep = (struct namenode *)vfsp->vfs_data;