btrfs: assert we join log transaction at btrfs_del_inode_ref_in_log()
authorFilipe Manana <fdmanana@suse.com>
Wed, 28 May 2025 14:28:26 +0000 (15:28 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:53:29 +0000 (23:53 +0200)
commitd94edb0d7e38e520174c0846afa5337319c1ac5f
tree3b66a460034cbd97f19397d5c53b716d1acf8865
parent75764b41bfc3a463b8a5f240e93f6342510dc944
btrfs: assert we join log transaction at btrfs_del_inode_ref_in_log()

We are supposed to be able to join a log transaction at that point, since
we have determined that the inode was logged in the current transaction
with the call to inode_logged(). So ASSERT() we joined a log transaction
and also warn if we didn't in case assertions are disabled (the kernel
config doesn't have CONFIG_BTRFS_ASSERT=y), so that the issue gets noticed
and reported if it ever happens.

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/tree-log.c