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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/bptree.c
          +++ new/usr/src/uts/common/fs/zfs/bptree.c
↓ open down ↓ 115 lines elided ↑ open up ↑
 116  116          dmu_buf_rele(db, FTAG);
 117  117          return (rv);
 118  118  }
 119  119  
 120  120  void
 121  121  bptree_add(objset_t *os, uint64_t obj, blkptr_t *bp, uint64_t birth_txg,
 122  122      uint64_t bytes, uint64_t comp, uint64_t uncomp, dmu_tx_t *tx)
 123  123  {
 124  124          dmu_buf_t *db;
 125  125          bptree_phys_t *bt;
 126      -        bptree_entry_phys_t bte = { 0 };
      126 +        bptree_entry_phys_t bte = { .be_birth_txg = 0 };
 127  127  
 128  128          /*
 129  129           * bptree objects are in the pool mos, therefore they can only be
 130  130           * modified in syncing context. Furthermore, this is only modified
 131  131           * by the sync thread, so no locking is necessary.
 132  132           */
 133  133          ASSERT(dmu_tx_is_syncing(tx));
 134  134  
 135  135          VERIFY3U(0, ==, dmu_bonus_hold(os, obj, FTAG, &db));
 136  136          bt = db->db_data;
↓ open down ↓ 165 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX