]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: scrub: introduce a helper to locate an extent item
authorQu Wenruo <wqu@suse.com>
Fri, 11 Mar 2022 07:38:42 +0000 (15:38 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:30 +0000 (17:17 +0200)
commitb26ca84cded3e033d20b900661f1eaf936b0777e
treef5cfa90405ae27794db39525f17cfa2595d4df48
parent47bf12413d986fe8b7a9da65d489475662cbb729
btrfs: scrub: introduce a helper to locate an extent item

The new helper, find_first_extent_item(), will locate an extent item
(either EXTENT_ITEM or METADATA_ITEM) which covers any byte of the
search range.

This helper will later be used to refactor scrub code.

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