summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_kern.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-08-25 00:22:31 +0000
committeralc <alc@FreeBSD.org>2002-08-25 00:22:31 +0000
commitcdcc7b3446c85c853dfe52a068a60cfe203c5afd (patch)
tree1434aead5b19bb951abb3181cdfe9517740f36b6 /sys/vm/vm_kern.c
parent883caafe6b42481f1cd62d5448db088af9bc54b7 (diff)
downloadFreeBSD-src-cdcc7b3446c85c853dfe52a068a60cfe203c5afd.zip
FreeBSD-src-cdcc7b3446c85c853dfe52a068a60cfe203c5afd.tar.gz
o Retire vm_page_zero_fill() and vm_page_zero_fill_area(). Ever since
pmap_zero_page() and pmap_zero_page_area() were modified to accept a struct vm_page * instead of a physical address, vm_page_zero_fill() and vm_page_zero_fill_area() have served no purpose.
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r--sys/vm/vm_kern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index f6fa55a..12608a6 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -199,7 +199,7 @@ kmem_alloc(map, size)
mem = vm_page_grab(kernel_object, OFF_TO_IDX(offset + i),
VM_ALLOC_ZERO | VM_ALLOC_RETRY);
if ((mem->flags & PG_ZERO) == 0)
- vm_page_zero_fill(mem);
+ pmap_zero_page(mem);
mem->valid = VM_PAGE_BITS_ALL;
vm_page_flag_clear(mem, PG_ZERO);
vm_page_wakeup(mem);
@@ -395,7 +395,7 @@ retry:
goto bad;
}
if (flags & M_ZERO && (m->flags & PG_ZERO) == 0)
- vm_page_zero_fill(m);
+ pmap_zero_page(m);
vm_page_flag_clear(m, PG_ZERO);
m->valid = VM_PAGE_BITS_ALL;
}
OpenPOWER on IntegriCloud