[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.17 and 1.18

version 1.17, 1998/12/27 21:13:43 version 1.18, 1999/03/23 02:49:03
Line 723  pool_prime(pp, n, storage)
Line 723  pool_prime(pp, n, storage)
         (void)lockmgr(&pp->pr_resourcelock, LK_EXCLUSIVE, NULL);          (void)lockmgr(&pp->pr_resourcelock, LK_EXCLUSIVE, NULL);
         newnitems = pp->pr_minitems + n;          newnitems = pp->pr_minitems + n;
         newpages =          newpages =
                 roundup(pp->pr_itemsperpage,newnitems) / pp->pr_itemsperpage                  roundup(newnitems, pp->pr_itemsperpage) / pp->pr_itemsperpage
                 - pp->pr_minpages;                  - pp->pr_minpages;
   
         while (newpages-- > 0) {          while (newpages-- > 0) {
Line 841  pool_setlowat(pp, n)
Line 841  pool_setlowat(pp, n)
         pp->pr_minitems = n;          pp->pr_minitems = n;
         pp->pr_minpages = (n == 0)          pp->pr_minpages = (n == 0)
                 ? 0                  ? 0
                 : roundup(pp->pr_itemsperpage,n) / pp->pr_itemsperpage;                  : roundup(n, pp->pr_itemsperpage) / pp->pr_itemsperpage;
         (void)lockmgr(&pp->pr_resourcelock, LK_RELEASE, NULL);          (void)lockmgr(&pp->pr_resourcelock, LK_RELEASE, NULL);
 }  }
   
Line 854  pool_sethiwat(pp, n)
Line 854  pool_sethiwat(pp, n)
         (void)lockmgr(&pp->pr_resourcelock, LK_EXCLUSIVE, NULL);          (void)lockmgr(&pp->pr_resourcelock, LK_EXCLUSIVE, NULL);
         pp->pr_maxpages = (n == 0)          pp->pr_maxpages = (n == 0)
                 ? 0                  ? 0
                 : roundup(pp->pr_itemsperpage,n) / pp->pr_itemsperpage;                  : roundup(n, pp->pr_itemsperpage) / pp->pr_itemsperpage;
         (void)lockmgr(&pp->pr_resourcelock, LK_RELEASE, NULL);          (void)lockmgr(&pp->pr_resourcelock, LK_RELEASE, NULL);
 }  }
   

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

CVSweb <webmaster@jp.NetBSD.org>