diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-02-13 19:51:50 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-02-13 19:51:50 +0000 |
commit | cdd6f94f6b5a13d9be5e278a0388139076d0f68d (patch) | |
tree | c683bc5c4e4fc69bbc56447280c9fc231acb5b96 /sys/kern/vfs_bio.c | |
parent | 2211b7acb9eda9915342b5acd6419ff38a9e9d6e (diff) |
Use MIN, not min when counting the pages we steal.
min is a function taking u_int arguments and we are counting signed longs
here.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 1c44bc1c9da..3021d4bbd0d 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.27 2000/06/23 02:14:38 mickey Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.28 2001/02/13 19:51:49 art Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /*- @@ -678,7 +678,7 @@ allocbuf(bp, size) binshash(nbp, &invalhash); /* and steal its pages, up to the amount we need */ - amt = min(nbp->b_bufsize, (desired_size - bp->b_bufsize)); + amt = MIN(nbp->b_bufsize, (desired_size - bp->b_bufsize)); pagemove((nbp->b_data + nbp->b_bufsize - amt), bp->b_data + bp->b_bufsize, amt); bp->b_bufsize += amt; |