Lines Matching refs:pn
278 puffs_updatenode(struct puffs_node *pn, int flags, voff_t size)
288 pn->pn_mc_atime = ts;
289 pn->pn_stat |= PNODE_METACACHE_ATIME;
292 pn->pn_mc_ctime = ts;
293 pn->pn_stat |= PNODE_METACACHE_CTIME;
296 pn->pn_mc_mtime = ts;
297 pn->pn_stat |= PNODE_METACACHE_MTIME;
300 pn->pn_mc_size = size;
301 pn->pn_stat |= PNODE_METACACHE_SIZE;
310 puffs_referencenode(struct puffs_node *pn)
313 KASSERT(mutex_owned(&pn->pn_mtx));
314 pn->pn_refcount++;
325 puffs_releasenode(struct puffs_node *pn)
328 mutex_enter(&pn->pn_mtx);
329 if (--pn->pn_refcount == 0) {
330 mutex_exit(&pn->pn_mtx);
331 mutex_destroy(&pn->pn_mtx);
332 mutex_destroy(&pn->pn_sizemtx);
333 seldestroy(&pn->pn_sel);
334 if (pn->pn_va_cache != NULL)
335 pool_put(&puffs_vapool, pn->pn_va_cache);
336 pool_put(&puffs_pnpool, pn);
338 mutex_exit(&pn->pn_mtx);