btrfs: make tree_search_prev_next return extent_state's
authorJosef Bacik <josef@toxicpanda.com>
Fri, 9 Sep 2022 21:53:36 +0000 (17:53 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:04 +0000 (12:28 +0200)
commit43b068cad58f2ae9cfb929a0f313499f70c16521
treea3b0bd233a59f7406e3c1f07ffb487ef51688454
parente349fd3bfbe5808e1a6b2e0dc996e3da0bfe99e1
btrfs: make tree_search_prev_next return extent_state's

Instead of doing the rb_entry again once we return from this function,
simply return the actual states themselves, and then clean up the only
user of this helper to handle states instead of nodes.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-io-tree.c