OSDN Git Service

btrfs: Remove root argument of cleanup_transaction
authorNikolay Borisov <nborisov@suse.com>
Wed, 7 Feb 2018 15:55:46 +0000 (17:55 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:32 +0000 (15:09 +0200)
commit97cb39bb912c8092c5570578f2eb1b2988ac1af8
treed06a657a741de29f3602a1e48c789b91d65a2580
parent9386d8bc58e2088f05d2d49a9b8af626ebbe687b
btrfs: Remove root argument of cleanup_transaction

The only thing the passed root is used for is:
1. get a reference to the fs_info and to
2. call trace_btrfs_transaction_commit.

We can achieve 1) by simply referring to the fs_info from passed trans
object. As far as 2) is concerned cleanup_transaction is called from
only one place and the 'root' argument passed is the one from the trans
handle. No functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/transaction.c