btrfs: relocation: simplify unused logic related to LINK_LOWER
authorDaniel Vacek <neelx@suse.com>
Wed, 14 May 2025 13:12:39 +0000 (15:12 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:53:25 +0000 (23:53 +0200)
commitd8f6cb2b28627fefa72e2ce1508db5781868a692
tree18367db47b6dc1a8800927bb3b6fa4b9b0a11c42
parent593062f67b828ecbd74bcf41e8be44ccf7d72374
btrfs: relocation: simplify unused logic related to LINK_LOWER

btrfs_backref_link_edge() is always called with the LINK_LOWER argument.
We can simplify it and remove the LINK_LOWER and LINK_UPPER macros
completely.

The last call with LINK_UPPER was removed with commit 0097422c0dfe0a
("btrfs: remove clone_backref_node() from relocation").

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Daniel Vacek <neelx@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c
fs/btrfs/backref.h