]> 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)
commitbe6fda816844df6e5242520aca49d69b4b0a7ff0
treea3b0bd233a59f7406e3c1f07ffb487ef51688454
parent111c5dde7e07a2c15190f55fef2676531cd8c22d
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