diff options
author | alc <alc@FreeBSD.org> | 2002-08-25 00:22:31 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-08-25 00:22:31 +0000 |
commit | cdcc7b3446c85c853dfe52a068a60cfe203c5afd (patch) | |
tree | 1434aead5b19bb951abb3181cdfe9517740f36b6 /sys/vm/vm_kern.c | |
parent | 883caafe6b42481f1cd62d5448db088af9bc54b7 (diff) | |
download | FreeBSD-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.c | 4 |
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; } |