Skip to content
Permalink
Browse files

zfs_async_block_max_blocks code reflow

  • Loading branch information...
TulsiJain committed May 30, 2019
1 parent a21e40d commit 8931cd9b3df1fcd86be3424c347a0008dcf048cd
Showing with 4 additions and 3 deletions.
  1. +4 −3 module/zfs/dsl_scan.c
@@ -3025,9 +3025,10 @@ dsl_scan_async_block_should_pause(dsl_scan_t *scn)
if (zfs_recover)
return (B_FALSE);

if (zfs_async_block_max_blocks != 0 && scn->scn_visited_this_txg >=
zfs_async_block_max_blocks)
return (B_TRUE);
if (zfs_async_block_max_blocks != 0 &&
scn->scn_visited_this_txg >= zfs_async_block_max_blocks) {
return (B_TRUE);
}

elapsed_nanosecs = gethrtime() - scn->scn_sync_start_time;
return (elapsed_nanosecs / NANOSEC > zfs_txg_timeout ||

0 comments on commit 8931cd9

Please sign in to comment.
You can’t perform that action at this time.