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/spa_config.c
          +++ new/usr/src/uts/common/fs/zfs/spa_config.c
↓ open down ↓ 309 lines elided ↑ open up ↑
 310  310  {
 311  311          mutex_enter(&spa->spa_props_lock);
 312  312          if (spa->spa_config != NULL)
 313  313                  nvlist_free(spa->spa_config);
 314  314          spa->spa_config = config;
 315  315          mutex_exit(&spa->spa_props_lock);
 316  316  }
 317  317  
 318  318  /*
 319  319   * Generate the pool's configuration based on the current in-core state.
      320 + *
 320  321   * We infer whether to generate a complete config or just one top-level config
 321  322   * based on whether vd is the root vdev.
 322  323   */
 323  324  nvlist_t *
 324  325  spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats)
 325  326  {
 326  327          nvlist_t *config, *nvroot;
 327  328          vdev_t *rvd = spa->spa_root_vdev;
 328  329          unsigned long hostid = 0;
 329  330          boolean_t locked = B_FALSE;
↓ open down ↓ 179 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX