Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Fix the order of arguments to roundup().



details:   https://anonhg.NetBSD.org/src/rev/906f55882c9f
branches:  trunk
changeset: 467320:906f55882c9f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Mar 23 02:49:03 1999 +0000

description:
Fix the order of arguments to roundup().

diffstat:

 sys/kern/subr_pool.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r d0565070ac45 -r 906f55882c9f sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c      Tue Mar 23 02:29:29 1999 +0000
+++ b/sys/kern/subr_pool.c      Tue Mar 23 02:49:03 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_pool.c,v 1.17 1998/12/27 21:13:43 thorpej Exp $   */
+/*     $NetBSD: subr_pool.c,v 1.18 1999/03/23 02:49:03 thorpej Exp $   */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -723,7 +723,7 @@
        (void)lockmgr(&pp->pr_resourcelock, LK_EXCLUSIVE, NULL);
        newnitems = pp->pr_minitems + n;
        newpages =
-               roundup(pp->pr_itemsperpage,newnitems) / pp->pr_itemsperpage
+               roundup(newnitems, pp->pr_itemsperpage) / pp->pr_itemsperpage
                - pp->pr_minpages;
 
        while (newpages-- > 0) {
@@ -841,7 +841,7 @@
        pp->pr_minitems = n;
        pp->pr_minpages = (n == 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);
 }
 
@@ -854,7 +854,7 @@
        (void)lockmgr(&pp->pr_resourcelock, LK_EXCLUSIVE, NULL);
        pp->pr_maxpages = (n == 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);
 }
 



Home | Main Index | Thread Index | Old Index