btrfs: move btrfs_abort_transaction to transaction.c
authorJosef Bacik <josef@toxicpanda.com>
Wed, 7 Dec 2022 15:18:04 +0000 (10:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Feb 2023 16:50:33 +0000 (17:50 +0100)
commitfccf0c842ed4857cff8067b72a79fcf64d972c2f
treed92fe700fa5d9881fb304cde9cd05baf22c4d9fe
parent0c555c97ef5a96b57c8955bb3cc1be9d3fbf166e
btrfs: move btrfs_abort_transaction to transaction.c

While trying to sync messages.[ch] I ended up with this dependency on
messages.h in the rest of btrfs-progs code base because it's where
btrfs_abort_transaction() was now held.  We want to keep messages.[ch]
limited to the kernel code, and the btrfs_abort_transaction() code
better fits in the transaction code and not in messages.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ move the __cold attributes ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/messages.c
fs/btrfs/messages.h
fs/btrfs/transaction.c
fs/btrfs/transaction.h