diff --git a/module/zfs/dnode.c b/module/zfs/dnode.c index 6f87f49f89..db1a5d71df 100644 --- a/module/zfs/dnode.c +++ b/module/zfs/dnode.c @@ -1657,7 +1657,7 @@ dnode_is_dirty(dnode_t *dn) mutex_enter(&dn->dn_mtx); for (int i = 0; i < TXG_SIZE; i++) { - if (list_head(&dn->dn_dirty_records[i]) != NULL) { + if (multilist_link_active(&dn->dn_dirty_link[i])) { mutex_exit(&dn->dn_mtx); return (B_TRUE); }