Lines Matching refs:tm
61 struct tmount *tm, in tmp_resv() argument
80 zone = tm->tm_vfsp->vfs_zone; in tmp_resv()
81 if (pagecreate && ((tm->tm_anonmem + pages > tm->tm_anonmax) || in tmp_resv()
91 mutex_enter(&tm->tm_contents); in tmp_resv()
92 tm->tm_anonmem += pages; in tmp_resv()
93 mutex_exit(&tm->tm_contents); in tmp_resv()
109 struct tmount *tm, in tmp_unresv() argument
116 anon_unresv_zone(delta, tm->tm_vfsp->vfs_zone); in tmp_unresv()
118 mutex_enter(&tm->tm_contents); in tmp_unresv()
119 tm->tm_anonmem -= btopr(delta); in tmp_unresv()
120 mutex_exit(&tm->tm_contents); in tmp_unresv()
160 tmpnode_init(struct tmount *tm, struct tmpnode *t, vattr_t *vap, cred_t *cred) in tmpnode_init() argument
184 t->tn_fsid = tm->tm_dev; in tmpnode_init()
198 vp->v_vfsp = tm->tm_vfsp; in tmpnode_init()
202 mutex_enter(&tm->tm_contents); in tmpnode_init()
209 t->tn_gen = tm->tm_gen++; in tmpnode_init()
215 if (tm->tm_rootnode != (struct tmpnode *)NULL) { in tmpnode_init()
217 t->tn_back = tm->tm_rootnode->tn_back; in tmpnode_init()
218 t->tn_back->tn_forw = tm->tm_rootnode->tn_back = t; in tmpnode_init()
220 mutex_exit(&tm->tm_contents); in tmpnode_init()
229 struct tmount *tm, in tmpnode_trunc() argument
271 if (tmp_resv(tm, tp, delta, in tmpnode_trunc()
290 tmp_unresv(tm, tp, delta); in tmpnode_trunc()