summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2003-12-28 01:43:22 +0000
committersilby <silby@FreeBSD.org>2003-12-28 01:43:22 +0000
commita58bddbe366329e88f05c837f6874cc20db6a2cb (patch)
tree5450bb93ec0abf65fe5f9617cee3907e9fd50330 /sys/ia64
parent5c61422855f8b82832cda590e960e1dc770a9855 (diff)
downloadFreeBSD-src-a58bddbe366329e88f05c837f6874cc20db6a2cb.zip
FreeBSD-src-a58bddbe366329e88f05c837f6874cc20db6a2cb.tar.gz
Move the declaration of sfbufspeak and sfbufsused to mbuf.h,
and use imax instead of max, as sfbufspeak and sfbufsused are signed. Submitted by: bde
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/vm_machdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/ia64/ia64/vm_machdep.c b/sys/ia64/ia64/vm_machdep.c
index ae59aab..10c6a61 100644
--- a/sys/ia64/ia64/vm_machdep.c
+++ b/sys/ia64/ia64/vm_machdep.c
@@ -113,7 +113,6 @@ static struct {
} sf_freelist;
static u_int sf_buf_alloc_want;
-extern int nsfbufspeak, nsfbufsused;
void
cpu_thread_exit(struct thread *td)
@@ -367,7 +366,7 @@ sf_buf_alloc(struct vm_page *m)
SLIST_REMOVE_HEAD(&sf_freelist.sf_head, free_list);
sf->m = m;
nsfbufsused++;
- nsfbufspeak = max(nsfbufspeak, nsfbufsused);
+ nsfbufspeak = imax(nsfbufspeak, nsfbufsused);
}
mtx_unlock(&sf_freelist.sf_lock);
return (sf);
OpenPOWER on IntegriCloud