Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/dsl_scan.c
          +++ new/usr/src/uts/common/fs/zfs/dsl_scan.c
↓ open down ↓ 1231 lines elided ↑ open up ↑
1232 1232   * on each visit during the top-down scrub phase, it will never be scrubbed.
1233 1233   * To catch this, ddt_sync_entry() notifies the scrub code whenever a block's
1234 1234   * reference class transitions to a higher level (i.e DDT_CLASS_UNIQUE to
1235 1235   * DDT_CLASS_DUPLICATE); if it transitions from refcnt == 1 to refcnt > 1
1236 1236   * while a scrub is in progress, it scrubs the block right then.
1237 1237   */
1238 1238  static void
1239 1239  dsl_scan_ddt(dsl_scan_t *scn, dmu_tx_t *tx)
1240 1240  {
1241 1241          ddt_bookmark_t *ddb = &scn->scn_phys.scn_ddt_bookmark;
1242      -        ddt_entry_t dde = { 0 };
     1242 +        ddt_entry_t dde = { .dde_loaded = 0 };
1243 1243          int error;
1244 1244          uint64_t n = 0;
1245 1245  
1246 1246          while ((error = ddt_walk(scn->scn_dp->dp_spa, ddb, &dde)) == 0) {
1247 1247                  ddt_t *ddt;
1248 1248  
1249 1249                  if (ddb->ddb_class > scn->scn_phys.scn_ddt_class_max)
1250 1250                          break;
1251 1251                  dprintf("visiting ddb=%llu/%llu/%llu/%llx\n",
1252 1252                      (longlong_t)ddb->ddb_class,
↓ open down ↓ 639 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX