Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vnode_pager.c
Show First 20 Lines • Show All 770 Lines • ▼ Show 20 Lines | vnode_pager_local_getpages(struct vop_getpages_args *ap) | ||||
return (vnode_pager_generic_getpages(ap->a_vp, ap->a_m, ap->a_count, | return (vnode_pager_generic_getpages(ap->a_vp, ap->a_m, ap->a_count, | ||||
ap->a_rbehind, ap->a_rahead, NULL, NULL)); | ap->a_rbehind, ap->a_rahead, NULL, NULL)); | ||||
} | } | ||||
int | int | ||||
vnode_pager_local_getpages_async(struct vop_getpages_async_args *ap) | vnode_pager_local_getpages_async(struct vop_getpages_async_args *ap) | ||||
{ | { | ||||
int error; | |||||
return (vnode_pager_generic_getpages(ap->a_vp, ap->a_m, ap->a_count, | error = vnode_pager_generic_getpages(ap->a_vp, ap->a_m, ap->a_count, | ||||
ap->a_rbehind, ap->a_rahead, ap->a_iodone, ap->a_arg)); | ap->a_rbehind, ap->a_rahead, ap->a_iodone, ap->a_arg); | ||||
if (error != 0 && ap->a_iodone != NULL) | |||||
ap->a_iodone(ap->a_arg, ap->a_m, ap->a_count, error); | |||||
return (error); | |||||
} | } | ||||
/* | /* | ||||
* This is now called from local media FS's to operate against their | * This is now called from local media FS's to operate against their | ||||
* own vnodes if they fail to implement VOP_GETPAGES. | * own vnodes if they fail to implement VOP_GETPAGES. | ||||
*/ | */ | ||||
int | int | ||||
vnode_pager_generic_getpages(struct vnode *vp, vm_page_t *m, int count, | vnode_pager_generic_getpages(struct vnode *vp, vm_page_t *m, int count, | ||||
▲ Show 20 Lines • Show All 795 Lines • Show Last 20 Lines |