Print this page
3006 VERIFY[S,U,P] and ASSERT[S,U,P] frequently check if first argument is zero

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/dmu_traverse.c
          +++ new/usr/src/uts/common/fs/zfs/dmu_traverse.c
↓ open down ↓ 166 lines elided ↑ open up ↑
 167  167                                  return (RESUME_SKIP_CHILDREN);
 168  168                  }
 169  169          }
 170  170          return (RESUME_SKIP_NONE);
 171  171  }
 172  172  
 173  173  static void
 174  174  traverse_pause(traverse_data_t *td, const zbookmark_t *zb)
 175  175  {
 176  176          ASSERT(td->td_resume != NULL);
 177      -        ASSERT3U(zb->zb_level, ==, 0);
      177 +        ASSERT0(zb->zb_level);
 178  178          bcopy(zb, td->td_resume, sizeof (*td->td_resume));
 179  179  }
 180  180  
 181  181  static int
 182  182  traverse_visitbp(traverse_data_t *td, const dnode_phys_t *dnp,
 183  183      arc_buf_t *pbuf, blkptr_t *bp, const zbookmark_t *zb)
 184  184  {
 185  185          zbookmark_t czb;
 186  186          int err = 0, lasterr = 0;
 187  187          arc_buf_t *buf = NULL;
↓ open down ↓ 382 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX