mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Convert dbuf dirty record record list to a list_t
Additionally pull in state machine comments about upcoming async cow work. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Matt Ahrens <matt@delphix.com> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9902
This commit is contained in:
@@ -2064,15 +2064,13 @@ dmu_objset_do_userquota_updates(objset_t *os, dmu_tx_t *tx)
|
||||
static void *
|
||||
dmu_objset_userquota_find_data(dmu_buf_impl_t *db, dmu_tx_t *tx)
|
||||
{
|
||||
dbuf_dirty_record_t *dr, **drp;
|
||||
dbuf_dirty_record_t *dr;
|
||||
void *data;
|
||||
|
||||
if (db->db_dirtycnt == 0)
|
||||
return (db->db.db_data); /* Nothing is changing */
|
||||
|
||||
for (drp = &db->db_last_dirty; (dr = *drp) != NULL; drp = &dr->dr_next)
|
||||
if (dr->dr_txg == tx->tx_txg)
|
||||
break;
|
||||
dr = dbuf_find_dirty_eq(db, tx->tx_txg);
|
||||
|
||||
if (dr == NULL) {
|
||||
data = NULL;
|
||||
|
||||
Reference in New Issue
Block a user