Lines Matching refs:lr_foid

1365 	    dmu_read(zd->zd_os, lr->lr_foid, lr->lr_offset, lr->lr_length,  in ztest_log_write()
1448 ASSERT(dmu_objset_zil(os)->zl_replay == !!lr->lr_foid); in ztest_replay_create()
1451 if (lr->lr_foid == 0) { in ztest_replay_create()
1452 lr->lr_foid = zap_create(os, in ztest_replay_create()
1456 error = zap_create_claim(os, lr->lr_foid, in ztest_replay_create()
1461 if (lr->lr_foid == 0) { in ztest_replay_create()
1462 lr->lr_foid = dmu_object_alloc(os, in ztest_replay_create()
1466 error = dmu_object_claim(os, lr->lr_foid, in ztest_replay_create()
1479 ASSERT(lr->lr_foid != 0); in ztest_replay_create()
1482 VERIFY3U(0, ==, dmu_object_set_blocksize(os, lr->lr_foid, in ztest_replay_create()
1485 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db)); in ztest_replay_create()
1488 ztest_bt_generate(bbt, os, lr->lr_foid, -1ULL, lr->lr_gen, txg, txg); in ztest_replay_create()
1492 &lr->lr_foid, tx)); in ztest_replay_create()
1588 ztest_object_lock(zd, lr->lr_foid, RL_READER); in ztest_replay_write()
1589 rl = ztest_range_lock(zd, lr->lr_foid, offset, length, RL_WRITER); in ztest_replay_write()
1591 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db)); in ztest_replay_write()
1603 dmu_tx_hold_write(tx, lr->lr_foid, offset, length); in ztest_replay_write()
1615 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_write()
1631 VERIFY(dmu_read(os, lr->lr_foid, offset, in ztest_replay_write()
1634 ztest_bt_verify(&rbt, os, lr->lr_foid, in ztest_replay_write()
1646 ztest_bt_verify(bt, os, lr->lr_foid, offset, in ztest_replay_write()
1655 ztest_bt_generate(bt, os, lr->lr_foid, offset, gen, txg, crtxg); in ztest_replay_write()
1659 dmu_write(os, lr->lr_foid, offset, length, data, tx); in ztest_replay_write()
1672 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_write()
1688 ztest_object_lock(zd, lr->lr_foid, RL_READER); in ztest_replay_truncate()
1689 rl = ztest_range_lock(zd, lr->lr_foid, lr->lr_offset, lr->lr_length, in ztest_replay_truncate()
1694 dmu_tx_hold_free(tx, lr->lr_foid, lr->lr_offset, lr->lr_length); in ztest_replay_truncate()
1699 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_truncate()
1703 VERIFY(dmu_free_range(os, lr->lr_foid, lr->lr_offset, in ztest_replay_truncate()
1711 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_truncate()
1728 ztest_object_lock(zd, lr->lr_foid, RL_WRITER); in ztest_replay_setattr()
1730 VERIFY3U(0, ==, dmu_bonus_hold(os, lr->lr_foid, FTAG, &db)); in ztest_replay_setattr()
1733 dmu_tx_hold_bonus(tx, lr->lr_foid); in ztest_replay_setattr()
1738 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_setattr()
1764 ztest_bt_verify(bbt, os, lr->lr_foid, -1ULL, lr->lr_mode, in ztest_replay_setattr()
1774 ztest_bt_generate(bbt, os, lr->lr_foid, -1ULL, lr->lr_mode, txg, crtxg); in ztest_replay_setattr()
1782 ztest_object_unlock(zd, lr->lr_foid); in ztest_replay_setattr()
1837 uint64_t object = lr->lr_foid; in ztest_get_data()
2002 lr->lr_foid = 0; /* 0 to allocate, > 0 to claim */ in ztest_create()
2016 od->od_object = lr->lr_foid; in ztest_create()
2076 lr->lr_foid = object; in ztest_write()
2099 lr->lr_foid = object; in ztest_truncate()
2118 lr->lr_foid = object; in ztest_setattr()