[BACK]Return to subr_pool.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/subr_pool.c between version 1.167 and 1.168

version 1.167, 2008/08/08 16:58:01 version 1.168, 2008/08/11 02:46:40
Line 1527  pool_update_curpage(struct pool *pp)
Line 1527  pool_update_curpage(struct pool *pp)
         if (pp->pr_curpage == NULL) {          if (pp->pr_curpage == NULL) {
                 pp->pr_curpage = LIST_FIRST(&pp->pr_emptypages);                  pp->pr_curpage = LIST_FIRST(&pp->pr_emptypages);
         }          }
           KASSERT((pp->pr_curpage == NULL && pp->pr_nitems == 0) ||
               (pp->pr_curpage != NULL && pp->pr_nitems > 0));
 }  }
   
 void  void
Line 2367  pool_cache_get_slow(pool_cache_cpu_t *cc
Line 2369  pool_cache_get_slow(pool_cache_cpu_t *cc
         pool_cache_t pc;          pool_cache_t pc;
         void *object;          void *object;
   
           KASSERT(cc->cc_current->pcg_avail == 0);
           KASSERT(cc->cc_previous->pcg_avail == 0);
   
         pc = cc->cc_cache;          pc = cc->cc_cache;
         cc->cc_misses++;          cc->cc_misses++;
   
Line 2519  pool_cache_put_slow(pool_cache_cpu_t *cc
Line 2524  pool_cache_put_slow(pool_cache_cpu_t *cc
         uint64_t ncsw;          uint64_t ncsw;
         pool_cache_t pc;          pool_cache_t pc;
   
           KASSERT(cc->cc_current->pcg_avail == cc->cc_current->pcg_size);
           KASSERT(cc->cc_previous->pcg_avail == cc->cc_previous->pcg_size);
   
         pc = cc->cc_cache;          pc = cc->cc_cache;
         cc->cc_misses++;          cc->cc_misses++;
   

Legend:
Removed from v.1.167  
changed lines
  Added in v.1.168

CVSweb <webmaster@jp.NetBSD.org>