mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 12:12:13 +03:00
DLPX-44812 integrate EP-220 large memory scalability
This commit is contained in:
committed by
Brian Behlendorf
parent
616fa7c02b
commit
a6255b7fce
+6
-1
@@ -46,6 +46,7 @@
|
||||
#include <sys/range_tree.h>
|
||||
#include <sys/trace_dbuf.h>
|
||||
#include <sys/callb.h>
|
||||
#include <sys/abd.h>
|
||||
|
||||
struct dbuf_hold_impl_data {
|
||||
/* Function arguments */
|
||||
@@ -3709,6 +3710,9 @@ dbuf_write_override_done(zio_t *zio)
|
||||
mutex_exit(&db->db_mtx);
|
||||
|
||||
dbuf_write_done(zio, NULL, db);
|
||||
|
||||
if (zio->io_abd != NULL)
|
||||
abd_put(zio->io_abd);
|
||||
}
|
||||
|
||||
/* Issue I/O to commit a dirty buffer to disk. */
|
||||
@@ -3801,7 +3805,8 @@ dbuf_write(dbuf_dirty_record_t *dr, arc_buf_t *data, dmu_tx_t *tx)
|
||||
* The BP for this block has been provided by open context
|
||||
* (by dmu_sync() or dmu_buf_write_embedded()).
|
||||
*/
|
||||
void *contents = (data != NULL) ? data->b_data : NULL;
|
||||
abd_t *contents = (data != NULL) ?
|
||||
abd_get_from_buf(data->b_data, arc_buf_size(data)) : NULL;
|
||||
|
||||
dr->dr_zio = zio_write(zio, os->os_spa, txg,
|
||||
&dr->dr_bp_copy, contents, db->db.db_size, db->db.db_size,
|
||||
|
||||
Reference in New Issue
Block a user