diff options
author | kib <kib@FreeBSD.org> | 2014-09-21 09:09:37 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-09-21 09:09:37 +0000 |
commit | 0d20ed9aa769672469f1fe95c75c8f1481e12a55 (patch) | |
tree | 688f4e6b92c20284a8de6c0daa5d0e97fc4e585a | |
parent | 42e5d75eb4732b7263715125594ad5bb40b9d22f (diff) | |
download | FreeBSD-src-0d20ed9aa769672469f1fe95c75c8f1481e12a55.zip FreeBSD-src-0d20ed9aa769672469f1fe95c75c8f1481e12a55.tar.gz |
MFC r271586:
Fix mis-spelling of bits and types names in the vnode_pager_putpages().
Approved by: re (delphij)
-rw-r--r-- | sys/vm/vnode_pager.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index 2e3d2c0..3353b70 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -83,7 +83,7 @@ static int vnode_pager_input_smlfs(vm_object_t object, vm_page_t m); static int vnode_pager_input_old(vm_object_t object, vm_page_t m); static void vnode_pager_dealloc(vm_object_t); static int vnode_pager_getpages(vm_object_t, vm_page_t *, int, int); -static void vnode_pager_putpages(vm_object_t, vm_page_t *, int, boolean_t, int *); +static void vnode_pager_putpages(vm_object_t, vm_page_t *, int, int, int *); static boolean_t vnode_pager_haspage(vm_object_t, vm_pindex_t, int *, int *); static vm_object_t vnode_pager_alloc(void *, vm_ooffset_t, vm_prot_t, vm_ooffset_t, struct ucred *cred); @@ -1024,12 +1024,8 @@ vnode_pager_generic_getpages(vp, m, bytecount, reqpage) * backing vp's VOP_PUTPAGES. */ static void -vnode_pager_putpages(object, m, count, sync, rtvals) - vm_object_t object; - vm_page_t *m; - int count; - boolean_t sync; - int *rtvals; +vnode_pager_putpages(vm_object_t object, vm_page_t *m, int count, + int flags, int *rtvals) { int rtval; struct vnode *vp; @@ -1047,15 +1043,15 @@ vnode_pager_putpages(object, m, count, sync, rtvals) * daemon up. This should be probably be addressed XXX. */ - if ((cnt.v_free_count + cnt.v_cache_count) < cnt.v_pageout_free_min) - sync |= OBJPC_SYNC; + if (cnt.v_free_count + cnt.v_cache_count < cnt.v_pageout_free_min) + flags |= VM_PAGER_PUT_SYNC; /* * Call device-specific putpages function */ vp = object->handle; VM_OBJECT_WUNLOCK(object); - rtval = VOP_PUTPAGES(vp, m, bytes, sync, rtvals, 0); + rtval = VOP_PUTPAGES(vp, m, bytes, flags, rtvals, 0); KASSERT(rtval != EOPNOTSUPP, ("vnode_pager: stale FS putpages\n")); VM_OBJECT_WLOCK(object); |