]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: remove call to transaction commit trace in btrfs_cleanup_transaction()
authorFilipe Manana <fdmanana@suse.com>
Fri, 17 Apr 2026 16:38:45 +0000 (17:38 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Jun 2026 13:53:33 +0000 (15:53 +0200)
We are not committing a transaction there, plus in subsequent patches we
want to change the argument for the trace event to be a transaction handle
instead of fs_info and in this context we don't have a transaction handle
(struct btrfs_trans_handle, only a struct btrfs_transaction). So remove the
call to the trace point.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c

index 62ef5ba69d37239c89a3c3793147f08cbb967b51..e6ed52f5cd6d99a91218a1756547bb424797ea72 100644 (file)
@@ -4946,7 +4946,6 @@ static int btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info)
                spin_unlock(&fs_info->trans_lock);
 
                btrfs_put_transaction(t);
-               trace_btrfs_transaction_commit(fs_info);
                spin_lock(&fs_info->trans_lock);
        }
        spin_unlock(&fs_info->trans_lock);