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/dsl_pool.h
          +++ new/usr/src/uts/common/fs/zfs/sys/dsl_pool.h
↓ open down ↓ 102 lines elided ↑ open up ↑
 103  103  
 104  104          /* Has its own locking */
 105  105          tx_state_t dp_tx;
 106  106          txg_list_t dp_dirty_datasets;
 107  107          txg_list_t dp_dirty_zilogs;
 108  108          txg_list_t dp_dirty_dirs;
 109  109          txg_list_t dp_sync_tasks;
 110  110  
 111  111          /*
 112  112           * Protects administrative changes (properties, namespace)
      113 +         *
 113  114           * It is only held for write in syncing context.  Therefore
 114  115           * syncing context does not need to ever have it for read, since
 115  116           * nobody else could possibly have it for write.
 116  117           */
 117  118          rrwlock_t dp_config_rwlock;
 118  119  
 119  120          zfs_all_blkstats_t *dp_blkstats;
 120  121  } dsl_pool_t;
 121  122  
 122  123  int dsl_pool_init(spa_t *spa, uint64_t txg, dsl_pool_t **dpp);
↓ open down ↓ 40 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX