btrfs: pass NULL index to btrfs_del_inode_ref() where not needed
authorFilipe Manana <fdmanana@suse.com>
Thu, 29 May 2025 15:59:07 +0000 (16:59 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:53:30 +0000 (23:53 +0200)
commit5f8882c8540efc501e2836afbc0eb06a84bf2ff2
treeba19bf55540a149fccdcf51c2f6fe9814ab48146
parent93612a92bade22c813599388baca1896a0bbc802
btrfs: pass NULL index to btrfs_del_inode_ref() where not needed

There are two callers of btrfs_del_inode_ref() that declare a local index
variable and then pass a pointer for it to btrfs_del_inode_ref(), but then
don't use that index at all. Since btrfs_del_inode_ref() accepts a NULL
index pointer, pass NULL instead and stop declaring those useless index
variables.

Reviewed-by: Boris Burkov <boris@bur.io>
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/inode.c
fs/btrfs/tree-log.c