diff options
author | Eric Sandeen <sandeen@redhat.com> | 2014-08-01 18:12:36 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-02-16 18:48:45 +0100 |
commit | 04892340777484351473f1756e6f870500c00a48 (patch) | |
tree | 3d1ae201bbece69f5ea288ed07257d96b1a1a238 /fs/btrfs/disk-io.c | |
parent | 9eaed21ef94b5da30eaf1b2503df1d41c2025175 (diff) | |
download | op-kernel-dev-04892340777484351473f1756e6f870500c00a48.zip op-kernel-dev-04892340777484351473f1756e6f870500c00a48.tar.gz |
btrfs: consistently use fs_info in close_ctree()
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>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index d91f089..6f37d9f 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -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)); } |