Searched refs:write_state (Results 1 – 3 of 3) sorted by relevance
479 itx_wr_state_t write_state; in zfs_log_write() local493 write_state = WR_INDIRECT; in zfs_log_write()495 write_state = WR_COPIED; in zfs_log_write()497 write_state = WR_NEED_COPY; in zfs_log_write()511 if (write_state != WR_INDIRECT && resid > ZIL_MAX_LOG_DATA) in zfs_log_write()517 (write_state == WR_COPIED ? len : 0)); in zfs_log_write()519 if (write_state == WR_COPIED && dmu_read(zp->z_zfsvfs->z_os, in zfs_log_write()524 write_state = WR_NEED_COPY; in zfs_log_write()527 itx->itx_wr_state = write_state; in zfs_log_write()528 if (write_state == WR_NEED_COPY) in zfs_log_write()
1071 itx_wr_state_t write_state; in zvol_log_write() local1079 write_state = WR_INDIRECT; /* uses dmu_sync */ in zvol_log_write()1082 write_state = WR_COPIED; in zvol_log_write()1085 write_state = WR_NEED_COPY; in zvol_log_write()1090 (write_state == WR_COPIED ? len : 0)); in zvol_log_write()1092 if (write_state == WR_COPIED && dmu_read(zv->zv_objset, in zvol_log_write()1097 write_state = WR_NEED_COPY; in zvol_log_write()1100 itx->itx_wr_state = write_state; in zvol_log_write()1101 if (write_state == WR_NEED_COPY) in zvol_log_write()
1349 itx_wr_state_t write_state = ztest_random(WR_NUM_STATES); in ztest_log_write() local1355 write_state = WR_INDIRECT; in ztest_log_write()1358 sizeof (*lr) + (write_state == WR_COPIED ? lr->lr_length : 0)); in ztest_log_write()1360 if (write_state == WR_COPIED && in ztest_log_write()1365 write_state = WR_NEED_COPY; in ztest_log_write()1368 itx->itx_wr_state = write_state; in ztest_log_write()1370 itx->itx_sod += (write_state == WR_NEED_COPY ? lr->lr_length : 0); in ztest_log_write()