Lines Matching refs:nblks
343 * Process stream hit access for nblks blocks starting at zs_blkid. Return
347 dmu_zfetch_hit(zstream_t *zs, uint64_t nblks)
358 if (r->start == 0 || r->start > nblks)
360 if (r->end >= nblks) {
361 nblks = r->end;
371 ASSERT3U(zs->zs_ranges[i].start, >, nblks);
372 ASSERT3U(zs->zs_ranges[i].end, >, nblks);
373 zs->zs_ranges[j].start = zs->zs_ranges[i].start - nblks;
374 zs->zs_ranges[j].end = zs->zs_ranges[i].end - nblks;
382 zs->zs_blkid += nblks;
383 return (nblks);
387 * Process future stream access for nblks blocks starting at blkid. Return
391 dmu_zfetch_future(zstream_t *zs, uint64_t blkid, uint64_t nblks)
395 ASSERT3U(blkid + nblks, <=, UINT16_MAX);
401 if (r->start == 0 || r->start > blkid + nblks)
414 zs->zs_ranges[f].end = MAX(zs->zs_ranges[l].end, blkid + nblks);
431 zs->zs_ranges[i].end = blkid + nblks;
458 * associates dnode access specified with blkid and nblks arguments with
469 dmu_zfetch_prepare(zfetch_t *zf, uint64_t blkid, uint64_t nblks,
520 uint64_t end_blkid = blkid + nblks;
527 nblks--;
546 nblks = dmu_zfetch_hit(zs,
551 nblks = dmu_zfetch_future(zs, blkid, nblks);
552 if (nblks > 0)
559 nblks -= zs->zs_blkid - blkid;
583 nblks = dmu_zfetch_hit(zs, nblks);
590 if (nblks == 0)
608 * Start prefetch from the demand access size (nblks). Double the
616 unsigned int nbytes = nblks << dbs;
738 dmu_zfetch(zfetch_t *zf, uint64_t blkid, uint64_t nblks, boolean_t fetch_data,
743 zs = dmu_zfetch_prepare(zf, blkid, nblks, fetch_data, have_lock);