diff options
author | alc <alc@FreeBSD.org> | 2003-10-08 05:35:12 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-10-08 05:35:12 +0000 |
commit | 76f6c3b05918bb363d84362ca21ec7dcb9c8ffb0 (patch) | |
tree | c3bdaaee2c7b0e765b3219b94ce2b3ee15487a7e /sys/vm/vm_fault.c | |
parent | 09fe11f64363ff091f222552c74d94b439b2923c (diff) | |
download | FreeBSD-src-76f6c3b05918bb363d84362ca21ec7dcb9c8ffb0.zip FreeBSD-src-76f6c3b05918bb363d84362ca21ec7dcb9c8ffb0.tar.gz |
Retire vm_page_copy(). Its reason for being ended when peter@ modified
pmap_copy_page() et al. to accept a vm_page_t rather than a physical
address. Also, this change will facilitate locking access to the vm page's
valid field.
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r-- | sys/vm/vm_fault.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 5a47307..279358c 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -738,7 +738,8 @@ readrest: /* * Oh, well, lets copy it. */ - vm_page_copy(fs.m, fs.first_m); + pmap_copy_page(fs.m, fs.first_m); + fs.first_m->valid = VM_PAGE_BITS_ALL; } if (fs.m) { /* @@ -1183,7 +1184,8 @@ vm_fault_copy_entry(dst_map, src_map, dst_entry, src_entry) if (src_m == NULL) panic("vm_fault_copy_wired: page missing"); - vm_page_copy(src_m, dst_m); + pmap_copy_page(src_m, dst_m); + dst_m->valid = VM_PAGE_BITS_ALL; /* * Enter it in the pmap... |