Print this page
cstyle sort of updates
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/dsl_synctask.c
          +++ new/usr/src/uts/common/fs/zfs/dsl_synctask.c
↓ open down ↓ 62 lines elided ↑ open up ↑
  63   63   * the dataset.
  64   64   */
  65   65  int
  66   66  dsl_sync_task(const char *pool, dsl_checkfunc_t *checkfunc,
  67   67      dsl_syncfunc_t *syncfunc, void *arg,
  68   68      int blocks_modified, zfs_space_check_t space_check)
  69   69  {
  70   70          spa_t *spa;
  71   71          dmu_tx_t *tx;
  72   72          int err;
  73      -        dsl_sync_task_t dst = { 0 };
       73 +        dsl_sync_task_t dst = { .dst_error = 0 };
  74   74          dsl_pool_t *dp;
  75   75  
  76   76          err = spa_open(pool, &spa, FTAG);
  77   77          if (err != 0)
  78   78                  return (err);
  79   79          dp = spa_get_dsl(spa);
  80   80  
  81   81  top:
  82   82          tx = dmu_tx_create_dd(dp->dp_mos_dir);
  83   83          VERIFY0(dmu_tx_assign(tx, TXG_WAIT));
↓ open down ↓ 103 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX