Fix mis-spelling of bits and types names in the
default_pager_putpages() and swap_pager_putpages(). It is the same fix as was done for vnode_pager_putpages() in r271586. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
5e929009d2
commit
e065e87c1e
@ -137,14 +137,11 @@ default_pager_getpages(object, m, count, reqpage)
|
|||||||
* cache to the free list.
|
* cache to the free list.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
default_pager_putpages(object, m, c, sync, rtvals)
|
default_pager_putpages(vm_object_t object, vm_page_t *m, int count,
|
||||||
vm_object_t object;
|
int flags, int *rtvals)
|
||||||
vm_page_t *m;
|
|
||||||
int c;
|
|
||||||
boolean_t sync;
|
|
||||||
int *rtvals;
|
|
||||||
{
|
{
|
||||||
swappagerops.pgo_putpages(object, m, c, sync, rtvals);
|
|
||||||
|
swappagerops.pgo_putpages(object, m, count, flags, rtvals);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1280,10 +1280,10 @@ swap_pager_getpages(vm_object_t object, vm_page_t *m, int count, int reqpage)
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
swap_pager_putpages(vm_object_t object, vm_page_t *m, int count,
|
swap_pager_putpages(vm_object_t object, vm_page_t *m, int count,
|
||||||
boolean_t sync, int *rtvals)
|
int flags, int *rtvals)
|
||||||
{
|
{
|
||||||
int i;
|
int i, n;
|
||||||
int n = 0;
|
boolean_t sync;
|
||||||
|
|
||||||
if (count && m[0]->object != object) {
|
if (count && m[0]->object != object) {
|
||||||
panic("swap_pager_putpages: object mismatch %p/%p",
|
panic("swap_pager_putpages: object mismatch %p/%p",
|
||||||
@ -1303,8 +1303,11 @@ swap_pager_putpages(vm_object_t object, vm_page_t *m, int count,
|
|||||||
swp_pager_meta_build(object, 0, SWAPBLK_NONE);
|
swp_pager_meta_build(object, 0, SWAPBLK_NONE);
|
||||||
VM_OBJECT_WUNLOCK(object);
|
VM_OBJECT_WUNLOCK(object);
|
||||||
|
|
||||||
|
n = 0;
|
||||||
if (curproc != pageproc)
|
if (curproc != pageproc)
|
||||||
sync = TRUE;
|
sync = TRUE;
|
||||||
|
else
|
||||||
|
sync = (flags & VM_PAGER_PUT_SYNC) != 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Step 2
|
* Step 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user