Lines Matching defs:svntrp
9741 svntr_t *svntrp;
9811 svntrp = svntr_hashtab[hash].tr_head;
9812 for (; svntrp != NULL; svntrp = svntrp->tr_next) {
9813 ASSERT(svntrp->tr_refcnt != 0);
9814 if (svntrp->tr_vp != vp) {
9830 if (!svntrp->tr_valid ||
9831 svntrp->tr_mtime.tv_sec != va.va_mtime.tv_sec ||
9832 svntrp->tr_mtime.tv_nsec != va.va_mtime.tv_nsec ||
9833 svntrp->tr_ctime.tv_sec != va.va_ctime.tv_sec ||
9834 svntrp->tr_ctime.tv_nsec != va.va_ctime.tv_nsec) {
9844 if (svntrp->tr_off == off && svntrp->tr_eoff == eoff &&
9845 svntrp->tr_szc == szc) {
9853 if ((off >= svntrp->tr_off && off < svntrp->tr_eoff) ||
9854 (eoff > svntrp->tr_off && eoff <= svntrp->tr_eoff)) {
9864 if (svntrp == NULL) {
9865 svntrp = kmem_cache_alloc(svntr_cache, KM_NOSLEEP);
9866 if (svntrp == NULL) {
9876 ASSERT(svntrp->tr_amp[i] == NULL);
9880 svntrp->tr_vp = vp;
9881 svntrp->tr_off = off;
9882 svntrp->tr_eoff = eoff;
9883 svntrp->tr_szc = szc;
9884 svntrp->tr_valid = 1;
9885 svntrp->tr_mtime = va.va_mtime;
9886 svntrp->tr_ctime = va.va_ctime;
9887 svntrp->tr_refcnt = 0;
9888 svntrp->tr_next = svntr_hashtab[hash].tr_head;
9889 svntr_hashtab[hash].tr_head = svntrp;
9951 if ((amp = svntrp->tr_amp[lgrp_id]) == NULL) {
9969 svntrp->tr_amp[lgrp_id] = amp;
9972 svntrp->tr_refcnt++;
9975 svd->svn_trnext = svntrp->tr_svnhead;
9977 if (svntrp->tr_svnhead != NULL) {
9978 svntrp->tr_svnhead->svn_trprev = svd;
9980 svntrp->tr_svnhead = svd;
9994 ASSERT(svntrp != NULL);
9995 ASSERT(svntrp->tr_amp[lgrp_id] == NULL);
9996 if (svntrp->tr_refcnt == 0) {
9997 ASSERT(svntrp == svntr_hashtab[hash].tr_head);
9998 svntr_hashtab[hash].tr_head = svntrp->tr_next;
10000 kmem_cache_free(svntr_cache, svntrp);
10025 svntr_t *svntrp;
10043 for (; (svntrp = *prv_svntrp) != NULL; prv_svntrp = &svntrp->tr_next) {
10044 ASSERT(svntrp->tr_refcnt != 0);
10045 if (svntrp->tr_vp == vp && svntrp->tr_off == off &&
10046 svntrp->tr_eoff == eoff && svntrp->tr_szc == szc) {
10050 if (svntrp == NULL) {
10053 if (svntrp->tr_amp[lgrp_id] != svd->amp) {
10059 ASSERT(svntrp->tr_svnhead == svd);
10060 svntrp->tr_svnhead = svd->svn_trnext;
10061 if (svntrp->tr_svnhead != NULL) {
10062 svntrp->tr_svnhead->svn_trprev = NULL;
10073 if (--svntrp->tr_refcnt) {
10077 *prv_svntrp = svntrp->tr_next;
10080 struct anon_map *amp = svntrp->tr_amp[i];
10093 svntrp->tr_amp[i] = NULL;
10100 kmem_cache_free(svntr_cache, svntrp);
10115 svntr_t *svntrp;
10124 svntrp = svntr_hashtab[hash].tr_head;
10125 for (; svntrp != NULL; svntrp = svntrp->tr_next) {
10126 ASSERT(svntrp->tr_refcnt != 0);
10127 if (svntrp->tr_vp == vp && svntrp->tr_valid) {
10128 svntrp->tr_valid = 0;
10188 svntr_t *svntrp;
10195 svntrp = svntr_hashtab[hash].tr_head;
10196 for (; svntrp != NULL; svntrp = svntrp->tr_next) {
10197 ASSERT(svntrp->tr_refcnt != 0);
10198 svd = svntrp->tr_svnhead;
10200 segvn_trupdate_seg(svd->seg, svd, svntrp,
10211 svntr_t *svntrp,
10221 ASSERT(svd->vp == svntrp->tr_vp);
10222 ASSERT(svd->offset == svntrp->tr_off);
10223 ASSERT(svd->offset + seg->s_size == svntrp->tr_eoff);
10227 ASSERT(seg->s_szc == svntrp->tr_szc);
10234 ASSERT(svntrp->tr_amp[svd->tr_policy_info.mem_lgrpid] == svd->amp);
10235 ASSERT(svntrp->tr_refcnt != 0);
10272 if (svntrp->tr_amp[lgrp_id] == NULL) {
10299 svntrp->tr_amp[lgrp_id] = amp;
10317 ASSERT(svd->amp != svntrp->tr_amp[lgrp_id]);
10320 svd->amp = svntrp->tr_amp[lgrp_id];
10325 ASSERT(svntrp->tr_refcnt != 0);
10326 ASSERT(svd->vp == svntrp->tr_vp);
10328 ASSERT(svd->amp != NULL && svd->amp == svntrp->tr_amp[lgrp_id]);