Print this page
NEX-3079 port illumos ARC improvements

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/zio_inject.c
          +++ new/usr/src/uts/common/fs/zfs/zio_inject.c
↓ open down ↓ 645 lines elided ↑ open up ↑
 646  646           * Flush the ARC, so that any attempts to read this data will end up
 647  647           * going to the ZIO layer.  Note that this is a little overkill, but
 648  648           * we don't have the necessary ARC interfaces to do anything else, and
 649  649           * fault injection isn't a performance critical path.
 650  650           */
 651  651          if (flags & ZINJECT_FLUSH_ARC)
 652  652                  /*
 653  653                   * We must use FALSE to ensure arc_flush returns, since
 654  654                   * we're not preventing concurrent ARC insertions.
 655  655                   */
 656      -                arc_flush(NULL, FALSE);
      656 +                arc_flush(NULL, B_FALSE);
 657  657  
 658  658          return (0);
 659  659  }
 660  660  
 661  661  /*
 662  662   * Returns the next record with an ID greater than that supplied to the
 663  663   * function.  Used to iterate over all handlers in the system.
 664  664   */
 665  665  int
 666  666  zio_inject_list_next(int *id, char *name, size_t buflen,
↓ open down ↓ 89 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX