]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use next_state/prev_state in merge_state
authorJosef Bacik <josef@toxicpanda.com>
Fri, 9 Sep 2022 21:53:37 +0000 (17:53 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:04 +0000 (12:28 +0200)
commit075a560d07ba085bc9109b7af73228f67c1b6728
tree7e92932db036fdf8ce1d09f4f456b477455e32d8
parentbe6fda816844df6e5242520aca49d69b4b0a7ff0
btrfs: use next_state/prev_state in merge_state

We use rb_next/rb_prev and then get the entry for the adjacent items in
an extent io tree.  We have helpers for this, so convert merge_state to
use next_state/prev_state and simplify the code.

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