btrfs: scrub: use find_first_extent_item to for extent item search
authorQu Wenruo <wqu@suse.com>
Fri, 11 Mar 2022 07:38:48 +0000 (15:38 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:31 +0000 (17:17 +0200)
commitd483bfd27ad0919e10eb7a9baf3cac5bcd17fc92
tree9bc3b1e9ed7f0ac398abc1f344736e7ee60d09c5
parent9ae53bf9097c8649ce7c49484888608fb15fdfea
btrfs: scrub: use find_first_extent_item to for extent item search

Since we have find_first_extent_item() to iterate the extent items of a
certain range, there is no need to use the open-coded version.

Replace the final scrub call site with find_first_extent_item().

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c