diff options
| author | Nikolay Borisov <[email protected]> | 2018-05-10 12:44:40 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-05-28 16:07:32 +0000 |
| commit | 483bce068ea79dde1d4586472759d70cc6ee34c4 (patch) | |
| tree | 219e134353c54659e9b7a12cca62b2b4c28301ab /fs/btrfs/tests/btrfs-tests.c | |
| parent | btrfs: Add assert in __btrfs_del_delalloc_inode (diff) | |
| download | kernel-483bce068ea79dde1d4586472759d70cc6ee34c4.tar.gz kernel-483bce068ea79dde1d4586472759d70cc6ee34c4.zip | |
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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tests/btrfs-tests.c')
| -rw-r--r-- | fs/btrfs/tests/btrfs-tests.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/tests/btrfs-tests.c b/fs/btrfs/tests/btrfs-tests.c index 30ed438da2a9..db72b3b6209e 100644 --- a/fs/btrfs/tests/btrfs-tests.c +++ b/fs/btrfs/tests/btrfs-tests.c @@ -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) |
