Lines Matching defs:extent

192 static void	cluster_read_ahead(vnode_t vp, struct cl_extent *extent, off_t filesize, struct cl_readahead *ra, int (*callback)(buf_t, void *), void *callback_arg, int bflag);
964 * via the extent info returned from the VNOP_BLOCKMAP call.
1111 * return an extent size of 0 which means we can't
1114 * a real extent is returned with a blkno != -1 and a non-zero io_size
1153 * path will insure that the zero extent accounting
1716 cluster_read_ahead(vnode_t vp, struct cl_extent *extent, off_t filesize, struct cl_readahead *rap, int (*callback)(buf_t, void *), void *callback_arg,
1726 (int)extent->b_addr, (int)extent->e_addr, (int)rap->cl_lastr, 0, 0);
1728 if (extent->b_addr == rap->cl_lastr && extent->b_addr == extent->e_addr) {
1733 if (rap->cl_lastr == -1 || (extent->b_addr != rap->cl_lastr && extent->b_addr != (rap->cl_lastr + 1))) {
1752 if (extent->e_addr < rap->cl_maxra) {
1753 if ((rap->cl_maxra - extent->e_addr) > ((max_prefetch / PAGE_SIZE) / 4)) {
1760 r_addr = max(extent->e_addr, rap->cl_maxra) + 1;
1777 read_size = (extent->e_addr + 1) - extent->b_addr;
3513 struct cl_extent extent;
3566 extent.b_addr = uio->uio_offset / PAGE_SIZE_64;
3567 extent.e_addr = (last_request_offset - 1) / PAGE_SIZE_64;
3570 if (rap != NULL && rap->cl_ralen && (rap->cl_lastr == extent.b_addr || (rap->cl_lastr + 1) == extent.b_addr)) {
3574 * if so, pick up it's extent to determine where we should start
3661 cluster_read_ahead(vp, &extent, filesize, rap, callback, callback_arg, bflag);
3668 if (extent.e_addr < rap->cl_lastr)
3670 rap->cl_lastr = extent.e_addr;
3792 if (extent.e_addr < rap->cl_maxra) {
3872 cluster_read_ahead(vp, &extent, filesize, rap, callback, callback_arg, bflag);
3875 if (extent.e_addr < rap->cl_lastr)
3877 rap->cl_lastr = extent.e_addr;