btrfs: pass struct rb_simple_node pointer directly in rb_simple_insert()
authorPan Chuang <panchuang@vivo.com>
Fri, 16 May 2025 03:03:32 +0000 (11:03 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:53:26 +0000 (23:53 +0200)
commitc52ea14d0544cfcd3c76ac9e3ce8ca16832cc033
tree49163b4ad604f670a966ed13bcd5d39027af6c82
parentfbec9a5d3e98513ce796194fe8604cade1aa3188
btrfs: pass struct rb_simple_node pointer directly in rb_simple_insert()

Replace struct embedding with union to enable safe type conversion in
btrfs_backref_node, tree_block and mapping_node.

Adjust function calls to use the new unified API, eliminating redundant
parameters.

Signed-off-by: Pan Chuang <panchuang@vivo.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c
fs/btrfs/backref.h
fs/btrfs/misc.h
fs/btrfs/relocation.c