summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2004-06-28 19:58:39 +0000
committergallatin <gallatin@FreeBSD.org>2004-06-28 19:58:39 +0000
commitf1f19c639c7fa6254ab9cd7d40a28d38b245f844 (patch)
tree5114032ed705dbdcf00eeecea244cd25e6239a94 /sys/vm/vm_map.c
parent81e93410351409b1954c0265486eb5f3a9241814 (diff)
downloadFreeBSD-src-f1f19c639c7fa6254ab9cd7d40a28d38b245f844.zip
FreeBSD-src-f1f19c639c7fa6254ab9cd7d40a28d38b245f844.tar.gz
Use MIN() macro rather than ulmin() inline, and fix stray tab
that snuck in with my last commit. Submitted by: green
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index e15cf09..55726f5 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -2360,12 +2360,12 @@ vmspace_map_entry_forked(const struct vmspace *vm1, struct vmspace *vm2,
vm2->vm_ssize += btoc(entrysize);
} else if (entry->start >= (vm_offset_t)vm1->vm_daddr &&
entry->start < (vm_offset_t)vm1->vm_daddr + ctob(vm1->vm_dsize)) {
- newend = ulmin(entry->end,
+ newend = MIN(entry->end,
(vm_offset_t)vm1->vm_daddr + ctob(vm1->vm_dsize));
- vm2->vm_dsize += btoc(newend - entry->start);
+ vm2->vm_dsize += btoc(newend - entry->start);
} else if (entry->start >= (vm_offset_t)vm1->vm_taddr &&
entry->start < (vm_offset_t)vm1->vm_taddr + ctob(vm1->vm_tsize)) {
- newend = ulmin(entry->end,
+ newend = MIN(entry->end,
(vm_offset_t)vm1->vm_taddr + ctob(vm1->vm_tsize));
vm2->vm_tsize += btoc(newend - entry->start);
}
OpenPOWER on IntegriCloud