btrfs: Make btrfs_init_dummy_trans initialize trans' fs_info field
This will be necessary for future cleanups which remove the fs_info argument from some freespace tree functions. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:

committed by
David Sterba

parent
7c8a0d363a
commit
483bce068e
@@ -219,11 +219,13 @@ void btrfs_free_dummy_block_group(struct btrfs_block_group_cache *cache)
|
||||
kfree(cache);
|
||||
}
|
||||
|
||||
void btrfs_init_dummy_trans(struct btrfs_trans_handle *trans)
|
||||
void btrfs_init_dummy_trans(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_fs_info *fs_info)
|
||||
{
|
||||
memset(trans, 0, sizeof(*trans));
|
||||
trans->transid = 1;
|
||||
trans->type = __TRANS_DUMMY;
|
||||
trans->fs_info = fs_info;
|
||||
}
|
||||
|
||||
int btrfs_run_sanity_tests(void)
|
||||
|
Reference in New Issue
Block a user