Lines Matching refs:lr_foid

1361 	    dmu_read(zd->zd_os, lr->lr_foid, lr->lr_offset, lr->lr_length,  in ztest_log_write()
1444 ASSERT(dmu_objset_zil(os)->zl_replay == !!lr->lr_foid); in ztest_replay_create()
1447 if (lr->lr_foid == 0) { in ztest_replay_create()
1448 lr->lr_foid = zap_create(os, in ztest_replay_create()
1452 error = zap_create_claim(os, lr->lr_foid, in ztest_replay_create()
1457 if (lr->lr_foid == 0) { in ztest_replay_create()
1458 lr->lr_foid = dmu_object_alloc(os, in ztest_replay_create()
1462 error = dmu_object_claim(os, lr->lr_foid, in ztest_replay_create()
1475 ASSERT(lr->lr_foid != 0); in ztest_replay_create()
1478 VERIFY3U(0, ==, dmu_object_set_blocksize(os, lr->lr_foid, in ztest_replay_create()
1481 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db)); in ztest_replay_create()
1484 ztest_bt_generate(bbt, os, lr->lr_foid, -1ULL, lr->lr_gen, txg, txg); in ztest_replay_create()
1488 &lr->lr_foid, tx)); in ztest_replay_create()
1584 ztest_object_lock(zd, lr->lr_foid, RL_READER); in ztest_replay_write()
1585 rl = ztest_range_lock(zd, lr->lr_foid, offset, length, RL_WRITER); in ztest_replay_write()
1587 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db)); in ztest_replay_write()
1599 dmu_tx_hold_write(tx, lr->lr_foid, offset, length); in ztest_replay_write()
1611 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_write()
1627 VERIFY(dmu_read(os, lr->lr_foid, offset, in ztest_replay_write()
1630 ztest_bt_verify(&rbt, os, lr->lr_foid, in ztest_replay_write()
1642 ztest_bt_verify(bt, os, lr->lr_foid, offset, in ztest_replay_write()
1651 ztest_bt_generate(bt, os, lr->lr_foid, offset, gen, txg, crtxg); in ztest_replay_write()
1655 dmu_write(os, lr->lr_foid, offset, length, data, tx); in ztest_replay_write()
1668 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_write()
1684 ztest_object_lock(zd, lr->lr_foid, RL_READER); in ztest_replay_truncate()
1685 rl = ztest_range_lock(zd, lr->lr_foid, lr->lr_offset, lr->lr_length, in ztest_replay_truncate()
1690 dmu_tx_hold_free(tx, lr->lr_foid, lr->lr_offset, lr->lr_length); in ztest_replay_truncate()
1695 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_truncate()
1699 VERIFY(dmu_free_range(os, lr->lr_foid, lr->lr_offset, in ztest_replay_truncate()
1707 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_truncate()
1724 ztest_object_lock(zd, lr->lr_foid, RL_WRITER); in ztest_replay_setattr()
1726 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db)); in ztest_replay_setattr()
1729 dmu_tx_hold_bonus(tx, lr->lr_foid); in ztest_replay_setattr()
1734 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_setattr()
1760 ztest_bt_verify(bbt, os, lr->lr_foid, -1ULL, lr->lr_mode, in ztest_replay_setattr()
1770 ztest_bt_generate(bbt, os, lr->lr_foid, -1ULL, lr->lr_mode, txg, crtxg); in ztest_replay_setattr()
1778 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_setattr()
1833 uint64_t object = lr->lr_foid; in ztest_get_data()
1998 lr->lr_foid = 0; /* 0 to allocate, > 0 to claim */ in ztest_create()
2012 od->od_object = lr->lr_foid; in ztest_create()
2072 lr->lr_foid = object; in ztest_write()
2095 lr->lr_foid = object; in ztest_truncate()
2114 lr->lr_foid = object; in ztest_setattr()