btrfs: consistently use fs_info in close_ctree()
authorEric Sandeen <sandeen@redhat.com>
Fri, 1 Aug 2014 23:12:36 +0000 (18:12 -0500)
committerDavid Sterba <dsterba@suse.cz>
Mon, 16 Feb 2015 17:48:45 +0000 (18:48 +0100)
close_ctree() has a local fs_info var for convienience;
use it consistently.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/disk-io.c

index d91f08994d3c3dad702d87115bacd552a5227d87..6f37d9fc5d28e68dc895efcb453f94d0499adbb3 100644 (file)
@@ -3670,7 +3670,7 @@ void close_ctree(struct btrfs_root *root)
        if (!(fs_info->sb->s_flags & MS_RDONLY)) {
                ret = btrfs_commit_super(root);
                if (ret)
-                       btrfs_err(root->fs_info, "commit super ret %d", ret);
+                       btrfs_err(fs_info, "commit super ret %d", ret);
        }
 
        if (test_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state))
@@ -3682,10 +3682,10 @@ void close_ctree(struct btrfs_root *root)
        fs_info->closing = 2;
        smp_mb();
 
-       btrfs_free_qgroup_config(root->fs_info);
+       btrfs_free_qgroup_config(fs_info);
 
        if (percpu_counter_sum(&fs_info->delalloc_bytes)) {
-               btrfs_info(root->fs_info, "at unmount delalloc count %lld",
+               btrfs_info(fs_info, "at unmount delalloc count %lld",
                       percpu_counter_sum(&fs_info->delalloc_bytes));
        }