Print this page
3742 zfs comments need cleaner, more consistent style
Submitted by:   Will Andrews <willa@spectralogic.com>
Submitted by:   Alan Somers <alans@spectralogic.com>
Reviewed by:    Matthew Ahrens <mahrens@delphix.com>
Reviewed by:    George Wilson <george.wilson@delphix.com>
Reviewed by:    Eric Schrock <eric.schrock@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/dnode.h
          +++ new/usr/src/uts/common/fs/zfs/sys/dnode.h
↓ open down ↓ 137 lines elided ↑ open up ↑
 138  138  
 139  139          uint64_t dn_pad3[4];
 140  140  
 141  141          blkptr_t dn_blkptr[1];
 142  142          uint8_t dn_bonus[DN_MAX_BONUSLEN - sizeof (blkptr_t)];
 143  143          blkptr_t dn_spill;
 144  144  } dnode_phys_t;
 145  145  
 146  146  typedef struct dnode {
 147  147          /*
 148      -         * dn_struct_rwlock protects the structure of the dnode,
 149      -         * including the number of levels of indirection (dn_nlevels),
 150      -         * dn_maxblkid, and dn_next_*
      148 +         * Protects the structure of the dnode, including the number of levels
      149 +         * of indirection (dn_nlevels), dn_maxblkid, and dn_next_*
 151  150           */
 152  151          krwlock_t dn_struct_rwlock;
 153  152  
 154  153          /* Our link on dn_objset->os_dnodes list; protected by os_lock.  */
 155  154          list_node_t dn_link;
 156  155  
 157  156          /* immutable: */
 158  157          struct objset *dn_objset;
 159  158          uint64_t dn_object;
 160  159          struct dmu_buf_impl *dn_dbuf;
↓ open down ↓ 169 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX