]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45ef669b4dce496910c852106e19fc4ab82a7337
treea3b0bd233a59f7406e3c1f07ffb487ef51688454
parent7a0c7500675e4a126fe8b81edbcc6dd5a20f66cd
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