Lines Matching defs:rbehind
832 vnode_pager_getpages(vm_object_t object, vm_page_t *m, int count, int *rbehind,
840 rtval = VOP_GETPAGES(vp, m, count, rbehind, rahead);
848 int *rbehind, int *rahead, vop_getpages_iodone_t iodone, void *arg)
854 rtval = VOP_GETPAGES_ASYNC(vp, m, count, rbehind, rahead, iodone, arg);
901 int error, before, after, rbehind, rahead, poff, i;
1006 /* Trim requested rbehind/rahead to possible values. */
1007 rbehind = a_rbehind ? *a_rbehind : 0;
1009 rbehind = min(rbehind, before);
1010 rbehind = min(rbehind, m[0]->pindex);
1014 * Check that total amount of pages fit into buf. Trim rbehind and
1017 if (rbehind + rahead + count > atop(maxphys)) {
1020 trim = rbehind + rahead + count - atop(maxphys) + 1;
1021 sum = rbehind + rahead;
1022 if (rbehind == before) {
1023 /* Roundup rbehind trim to block size. */
1024 rbehind -= roundup(trim * rbehind / sum, pagesperblock);
1025 if (rbehind < 0)
1026 rbehind = 0;
1028 rbehind -= trim * rbehind / sum;
1031 KASSERT(rbehind + rahead + count <= atop(maxphys),
1033 rbehind, rahead, count, maxphys));
1043 if (rbehind) {
1048 startpindex = m[0]->pindex - rbehind;