Searched refs:firstpg (Results 1 – 2 of 2) sorted by relevance
| /xnu-8020.140.41/bsd/nfs/ |
| H A D | nfs_bio.c | 191 nfs_buf_pgs_set_pages_between(nfsbufpgs *nfsbp, off_t firstpg, off_t lastpg) in nfs_buf_pgs_set_pages_between() argument 196 nfs_buf_pgs_get_page_mask(&pagemaskfirst, firstpg); in nfs_buf_pgs_set_pages_between() 2299 off_t pg, firstpg, lastpg, dirtypg; in nfs_bioread() local 2300 dirtypg = firstpg = lastpg = -1; in nfs_bioread() 2304 if (firstpg < 0) { in nfs_bioread() 2305 firstpg = pg; in nfs_bioread() 2308 } else if (firstpg >= 0 && dirtypg < 0 && NBPGDIRTY(bp, pg)) { in nfs_bioread() 2315 if (firstpg < 0) { in nfs_bioread() 2327 if (((dirtypg > firstpg) && (dirtypg < lastpg)) || in nfs_bioread() 2328 … (((firstpg * PAGE_SIZE) < bp->nb_dirtyend) && (((lastpg + 1) * PAGE_SIZE) > bp->nb_dirtyoff))) { in nfs_bioread() [all …]
|
| H A D | nfs_vnops.c | 3323 off_t firstpg = 0, lastpg = 0; in nfs_vnop_write() local 3327 firstpg = on / PAGE_SIZE; in nfs_vnop_write() 3329 nfs_buf_pgs_set_pages_between(&pagemask, firstpg, lastpg + 1); in nfs_vnop_write() 3350 if (NBPGDIRTY(bp, firstpg) || NBPGDIRTY(bp, lastpg)) { in nfs_vnop_write() 3352 bp->nb_dirtyoff = MIN(on, firstpg * PAGE_SIZE); in nfs_vnop_write() 3451 off_t firstpgoff, lastpgoff, firstpg, lastpg, dirtypg; in nfs_vnop_write() local 3453 firstpg = on / PAGE_SIZE; in nfs_vnop_write() 3457 if (firstpgoff && !NBPGVALID(bp, firstpg)) { in nfs_vnop_write() 3459 start = firstpg * PAGE_SIZE; in nfs_vnop_write()
|