mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
DLPX-44812 integrate EP-220 large memory scalability
This commit is contained in:
committed by
Brian Behlendorf
parent
616fa7c02b
commit
a6255b7fce
+9
-5
@@ -47,6 +47,7 @@
|
||||
#include <sys/zio_compress.h>
|
||||
#include <sys/sa.h>
|
||||
#include <sys/zfeature.h>
|
||||
#include <sys/abd.h>
|
||||
#ifdef _KERNEL
|
||||
#include <sys/vmsystm.h>
|
||||
#include <sys/zfs_znode.h>
|
||||
@@ -1513,6 +1514,7 @@ dmu_sync_late_arrival_done(zio_t *zio)
|
||||
|
||||
dsa->dsa_done(dsa->dsa_zgd, zio->io_error);
|
||||
|
||||
abd_put(zio->io_abd);
|
||||
kmem_free(dsa, sizeof (*dsa));
|
||||
}
|
||||
|
||||
@@ -1537,11 +1539,11 @@ dmu_sync_late_arrival(zio_t *pio, objset_t *os, dmu_sync_cb_t *done, zgd_t *zgd,
|
||||
dsa->dsa_zgd = zgd;
|
||||
dsa->dsa_tx = tx;
|
||||
|
||||
zio_nowait(zio_write(pio, os->os_spa, dmu_tx_get_txg(tx),
|
||||
zgd->zgd_bp, zgd->zgd_db->db_data, zgd->zgd_db->db_size,
|
||||
zgd->zgd_db->db_size, zp, dmu_sync_late_arrival_ready, NULL,
|
||||
NULL, dmu_sync_late_arrival_done, dsa, ZIO_PRIORITY_SYNC_WRITE,
|
||||
ZIO_FLAG_CANFAIL, zb));
|
||||
zio_nowait(zio_write(pio, os->os_spa, dmu_tx_get_txg(tx), zgd->zgd_bp,
|
||||
abd_get_from_buf(zgd->zgd_db->db_data, zgd->zgd_db->db_size),
|
||||
zgd->zgd_db->db_size, zgd->zgd_db->db_size, zp,
|
||||
dmu_sync_late_arrival_ready, NULL, NULL, dmu_sync_late_arrival_done,
|
||||
dsa, ZIO_PRIORITY_SYNC_WRITE, ZIO_FLAG_CANFAIL, zb));
|
||||
|
||||
return (0);
|
||||
}
|
||||
@@ -2062,6 +2064,7 @@ byteswap_uint8_array(void *vbuf, size_t size)
|
||||
void
|
||||
dmu_init(void)
|
||||
{
|
||||
abd_init();
|
||||
zfs_dbgmsg_init();
|
||||
sa_cache_init();
|
||||
xuio_stat_init();
|
||||
@@ -2087,6 +2090,7 @@ dmu_fini(void)
|
||||
xuio_stat_fini();
|
||||
sa_cache_fini();
|
||||
zfs_dbgmsg_fini();
|
||||
abd_fini();
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
|
||||
Reference in New Issue
Block a user