]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: remove redundant check at find_first_extent_bit_state()
authorFilipe Manana <fdmanana@suse.com>
Wed, 2 Apr 2025 12:23:45 +0000 (13:23 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:41 +0000 (14:30 +0200)
commitc54c245f809aab1c81c626a4a667faba86b63adf
tree0ce8a1a12533c34278ec3be837c2eb3537a00369
parent56ec21a6dd2775ab73237e87c8725fe8c36d04d1
btrfs: remove redundant check at find_first_extent_bit_state()

The tree_search() function always returns an entry that either contains
the search offset or the first entry in the tree that starts after the
offset. So checking at find_first_extent_bit_state() if the returned
entry ends at or after the search offset is pointless. Remove the check.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-io-tree.c