]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: move ->parent and ->ref_root into btrfs_delayed_ref_node
authorJosef Bacik <josef@toxicpanda.com>
Sat, 13 Apr 2024 02:57:13 +0000 (22:57 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:05 +0000 (21:31 +0200)
commitcf4f04325b2b27efa5697ba0ea4c1abdee0035b4
treeca74b2f1022f2000511fb7411ee93b5319bdb050
parent12390e42b69d7e439cc2a266b6c7b4e1116de7c9
btrfs: move ->parent and ->ref_root into btrfs_delayed_ref_node

These two members are shared by both the tree refs and data refs, so
move them into btrfs_delayed_ref_node proper.  This allows us to greatly
simplify the comparison code, as the shared refs always only sort on
parent, and the non shared refs always sort first on ref_root, and then
only data refs sort on their specific fields.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
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/backref.c
fs/btrfs/delayed-ref.c
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c
include/trace/events/btrfs.h