]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - module/zfs/zfs_log.c
Imported Upstream version 0.6.5.3
[mirror_zfs-debian.git] / module / zfs / zfs_log.c
index cfce83138df2422933d86fe307b2d131b8df8efa..38d8de0ebf9764b1381e73882f17039d9aa7c725 100644 (file)
@@ -492,7 +492,7 @@ zfs_log_write(zilog_t *zilog, dmu_tx_t *tx, int txtype,
                 * If the write would overflow the largest block then split it.
                 */
                if (write_state != WR_INDIRECT && resid > ZIL_MAX_LOG_DATA)
-                       len = SPA_MAXBLOCKSIZE >> 1;
+                       len = SPA_OLD_MAXBLOCKSIZE >> 1;
                else
                        len = resid;