Lines Matching defs:rahead
833 int *rahead)
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. */
1008 rahead = a_rahead ? *a_rahead : 0;
1011 rahead = min(rahead, after);
1012 rahead = min(rahead, object->size - m[count - 1]->pindex);
1015 * rahead evenly if not.
1017 if (rbehind + rahead + count > atop(maxphys)) {
1020 trim = rbehind + rahead + count - atop(maxphys) + 1;
1021 sum = rbehind + rahead;
1029 rahead -= trim * rahead / sum;
1031 KASSERT(rbehind + rahead + count <= atop(maxphys),
1033 rbehind, rahead, count, maxphys));
1079 if (rahead) {
1085 endpindex = m[count - 1]->pindex + rahead + 1;