]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/zfs_log.c
Implement large_dnode pool feature
[mirror_zfs.git] / module / zfs / zfs_log.c
index 38d8de0ebf9764b1381e73882f17039d9aa7c725..4d89cb04b592742b1c951bf06d906cd40de260ca 100644 (file)
@@ -279,6 +279,8 @@ zfs_log_create(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype,
        lr = (lr_create_t *)&itx->itx_lr;
        lr->lr_doid = dzp->z_id;
        lr->lr_foid = zp->z_id;
+       /* Store dnode slot count in 8 bits above object id. */
+       LR_FOID_SET_SLOTS(lr->lr_foid, zp->z_dnodesize >> DNODE_SHIFT);
        lr->lr_mode = zp->z_mode;
        if (!IS_EPHEMERAL(zp->z_uid)) {
                lr->lr_uid = (uint64_t)zp->z_uid;