Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vnode_pager.c
| Show First 20 Lines • Show All 514 Lines • ▼ Show 20 Lines | if (!vm_page_none_valid(m)) { | ||||
| * bits. This would prevent bogus_page | * bits. This would prevent bogus_page | ||||
| * replacement from working properly. | * replacement from working properly. | ||||
| */ | */ | ||||
| vm_page_clear_dirty(m, base, PAGE_SIZE - base); | vm_page_clear_dirty(m, base, PAGE_SIZE - base); | ||||
| } | } | ||||
| vm_page_xunbusy(m); | vm_page_xunbusy(m); | ||||
| } | } | ||||
| out: | out: | ||||
| #if defined(__powerpc__) && !defined(__powerpc64__) | |||||
| object->un_pager.vnp.vnp_size = nsize; | object->un_pager.vnp.vnp_size = nsize; | ||||
| #else | |||||
| atomic_store_64(&object->un_pager.vnp.vnp_size, nsize); | |||||
| #endif | |||||
| object->size = nobjsize; | object->size = nobjsize; | ||||
| VM_OBJECT_WUNLOCK(object); | VM_OBJECT_WUNLOCK(object); | ||||
| } | } | ||||
| /* | /* | ||||
| * calculate the linear (byte) disk address of specified virtual | * calculate the linear (byte) disk address of specified virtual | ||||
| * file address | * file address | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 1,072 Lines • Show Last 20 Lines | |||||