]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit402028ea50477149664a5bd4c93a3528948b6a90
tree9bc3b1e9ed7f0ac398abc1f344736e7ee60d09c5
parentc0ccbe6bc78fdf226342d26341c9911b276eaf94
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