btrfs: remove pointless in_tree field from struct btrfs_delayed_ref_node
authorFilipe Manana <fdmanana@suse.com>
Mon, 29 May 2023 15:16:59 +0000 (16:16 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:31 +0000 (13:59 +0200)
commit4d34ad34d7cc5390ec03b25f2a7f2fd5041cb7d8
tree8ba5f28225e31d925917cc79c7907d8ee14c65e7
parent53499d5f6b68766317a62b1513e9386c2584e97c
btrfs: remove pointless in_tree field from struct btrfs_delayed_ref_node

The 'in_tree' field is really not needed in struct btrfs_delayed_ref_node,
as we can check whether a reference is in the tree or not simply by
checking its red black tree node member with RB_EMPTY_NODE(), as when we
remove it from the tree we always call RB_CLEAR_NODE(). So remove that
field and use RB_EMPTY_NODE().

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-ref.c
fs/btrfs/delayed-ref.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c