]> git.dujemihanovic.xyz Git - linux.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)
commite63b81aef26ba07849a3090befde12f2653aa6a8
tree7e92932db036fdf8ce1d09f4f456b477455e32d8
parent43b068cad58f2ae9cfb929a0f313499f70c16521
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