Skip to content

Commit

Permalink
module/zfs: vdev_removal: spa_vdev_remove_thread: remove unused variable
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12187
  • Loading branch information
nabijaczleweli authored and behlendorf committed Jun 8, 2021
1 parent 6bab6ee commit f423411
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions module/zfs/vdev_removal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1514,10 +1514,6 @@ spa_vdev_remove_thread(void *arg)
* specified by zfs_removal_suspend_progress. We do this
* solely from the test suite or during debugging.
*/
uint64_t bytes_copied =
spa->spa_removing_phys.sr_copied;
for (int i = 0; i < TXG_SIZE; i++)
bytes_copied += svr->svr_bytes_done[i];
while (zfs_removal_suspend_progress &&
!svr->svr_thread_exit)
delay(hz);
Expand Down

0 comments on commit f423411

Please sign in to comment.