btrfs: Make btrfs_init_dummy_trans initialize trans' fs_info field
[sfrench/cifs-2.6.git] / fs / btrfs / tests / free-space-tree-tests.c
index 8444a018cca2925f50c64e075ca98691a353bef3..a24ead6ceb2bd8c00ba02aa1dc01469b2992d366 100644 (file)
@@ -1,19 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2015 Facebook.  All rights reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public
- * License v2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 021110-1307, USA.
  */
 
 #include <linux/types.h>
@@ -495,7 +482,7 @@ static int run_test(test_func_t test_func, int bitmaps, u32 sectorsize,
        cache->needs_free_space = 1;
        cache->fs_info = root->fs_info;
 
-       btrfs_init_dummy_trans(&trans);
+       btrfs_init_dummy_trans(&trans, root->fs_info);
 
        path = btrfs_alloc_path();
        if (!path) {