btrfs: use btrfs_for_each_slot in mark_block_group_to_copy
authorGabriel Niebler <gniebler@suse.com>
Wed, 9 Mar 2022 13:50:40 +0000 (14:50 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:07 +0000 (17:03 +0200)
commit9bc5fc0417c8c3dff4205052e93650c62aa2d70e
treed75eda6237d0eeb7b15a9855eb2305d9882fc92b
parent36dfbbe25ec016a812b9fd78e6dfdafc5397ab3a
btrfs: use btrfs_for_each_slot in mark_block_group_to_copy

This function can be simplified by refactoring to use the new iterator
macro.  No functional changes.

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: Gabriel Niebler <gniebler@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c