Lines Matching refs:resid
683 uint64_t resid = zv->zv_volsize; in zvol_prealloc() local
694 while (resid != 0) { in zvol_prealloc()
696 uint64_t bytes = MIN(resid, SPA_OLD_MAXBLOCKSIZE); in zvol_prealloc()
709 resid -= bytes; in zvol_prealloc()
1050 zvol_log_write(zvol_state_t *zv, dmu_tx_t *tx, offset_t off, ssize_t resid, in zvol_log_write() argument
1067 while (resid) { in zvol_log_write()
1078 resid >= blocksize && off % blocksize == 0) { in zvol_log_write()
1083 len = MIN(ZIL_MAX_LOG_DATA, resid); in zvol_log_write()
1086 len = MIN(ZIL_MAX_LOG_DATA, resid); in zvol_log_write()
1121 resid -= len; in zvol_log_write()
1224 size_t resid; in zvol_strategy() local
1265 resid = bp->b_bcount; in zvol_strategy()
1267 if (resid > 0 && (off < 0 || off >= volsize)) { in zvol_strategy()
1283 rl = zfs_range_lock(&zv->zv_znode, off, resid, in zvol_strategy()
1286 while (resid != 0 && off < volsize) { in zvol_strategy()
1287 size_t size = MIN(resid, zvol_maxphys); in zvol_strategy()
1315 resid -= size; in zvol_strategy()
1319 if ((bp->b_resid = resid) == bp->b_bcount) in zvol_strategy()
1352 uint64_t resid; in zvol_dump() local
1362 resid = ldbtob(nblocks); in zvol_dump()
1364 VERIFY3U(boff + resid, <=, zv->zv_volsize); in zvol_dump()
1366 while (resid) { in zvol_dump()
1367 size = MIN(resid, P2END(boff, zv->zv_volblocksize) - boff); in zvol_dump()
1373 resid -= size; in zvol_dump()
1602 zvol_log_write_minor(void *minor_hdl, dmu_tx_t *tx, offset_t off, ssize_t resid, in zvol_log_write_minor() argument
1607 zvol_log_write(zv, tx, off, resid, sync); in zvol_log_write_minor()