mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 11:47:43 +03:00
OpenZFS 8070 - Add some ZFS comments
Authored by: Alan Somers <asomers@gmail.com> Reviewed by: Yuri Pankov <yuri.pankov@gmail.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Ported-by: bunder2015 <omfgbunder@gmail.com> OpenZFS-issue: https://www.illumos.org/issues/8070 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/40713f2 Closes #6160
This commit is contained in:
committed by
Brian Behlendorf
parent
959f56b993
commit
0071036526
@@ -1300,6 +1300,11 @@ dbuf_unoverride(dbuf_dirty_record_t *dr)
|
||||
uint64_t txg = dr->dr_txg;
|
||||
|
||||
ASSERT(MUTEX_HELD(&db->db_mtx));
|
||||
/*
|
||||
* This assert is valid because dmu_sync() expects to be called by
|
||||
* a zilog's get_data while holding a range lock. This call only
|
||||
* comes from dbuf_dirty() callers who must also hold a range lock.
|
||||
*/
|
||||
ASSERT(dr->dt.dl.dr_override_state != DR_IN_DMU_SYNC);
|
||||
ASSERT(db->db_level == 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user