aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorRiyan Dhiman <[email protected]>2024-09-26 07:50:34 +0000
committerDavid Sterba <[email protected]>2024-11-11 13:34:13 +0000
commit522945b3424297699a5d62e0f39f9537a2a451a2 (patch)
tree689fb5da4f1804cadadbb5b1c75cedd898fd51de /fs/btrfs/dev-replace.c
parentbtrfs: remove pointless initialization at btrfs_qgroup_trace_extent() (diff)
downloadkernel-522945b3424297699a5d62e0f39f9537a2a451a2.tar.gz
kernel-522945b3424297699a5d62e0f39f9537a2a451a2.zip
btrfs: remove redundant stop_loop variable in scrub_stripe()
The variable stop_loop was originally introduced in commit 625f1c8dc66d7 ("Btrfs: improve the loop of scrub_stripe"). It was initialized to 0 in commit 3b080b2564287 ("Btrfs: scrub raid56 stripes in the right way"). However, in a later commit 18d30ab961497 ("btrfs: scrub: use scrub_simple_mirror() to handle RAID56 data stripe scrub"), the code that modified stop_loop was removed, making the variable redundant. Currently, stop_loop is only initialized with 0 and is never used or modified within the scrub_stripe() function. As a result, this patch removes the stop_loop variable to clean up the code and eliminate unnecessary redundancy. This change has no impact on functionality, as stop_loop was never utilized in any meaningful way in the final version of the code. Reviewed-by: Filipe Manana <[email protected]> Signed-off-by: Riyan Dhiman <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions