dsl_scan.c (260763) | dsl_scan.c (262120) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1333 unchanged lines hidden (view full) --- 1342 zap_cursor_fini(&zc); 1343} 1344 1345static boolean_t 1346dsl_scan_free_should_pause(dsl_scan_t *scn) 1347{ 1348 uint64_t elapsed_nanosecs; 1349 | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1333 unchanged lines hidden (view full) --- 1342 zap_cursor_fini(&zc); 1343} 1344 1345static boolean_t 1346dsl_scan_free_should_pause(dsl_scan_t *scn) 1347{ 1348 uint64_t elapsed_nanosecs; 1349 |
1350 if (zfs_recover) 1351 return (B_FALSE); 1352 |
|
1350 elapsed_nanosecs = gethrtime() - scn->scn_sync_start_time; 1351 return (elapsed_nanosecs / NANOSEC > zfs_txg_timeout || 1352 (NSEC2MSEC(elapsed_nanosecs) > zfs_free_min_time_ms && 1353 txg_sync_waiting(scn->scn_dp)) || 1354 spa_shutting_down(scn->scn_dp->dp_spa)); 1355} 1356 1357static int --- 406 unchanged lines hidden --- | 1353 elapsed_nanosecs = gethrtime() - scn->scn_sync_start_time; 1354 return (elapsed_nanosecs / NANOSEC > zfs_txg_timeout || 1355 (NSEC2MSEC(elapsed_nanosecs) > zfs_free_min_time_ms && 1356 txg_sync_waiting(scn->scn_dp)) || 1357 spa_shutting_down(scn->scn_dp->dp_spa)); 1358} 1359 1360static int --- 406 unchanged lines hidden --- |