summaryrefslogtreecommitdiff
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-17 01:40:05 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-08 19:34:40 -0500
commitbe7e0950def403e90b5295ff2192c39967bf2aec (patch)
treeee468d0b63e30ac8270e1daabc823b51e4759f25 /fs/btrfs/super.c
parent29db78aa0ac82319b764b87a1c5030d74523e296 (diff)
btrfs: merge free_fs_info() calls on fill_super failures
... all the way up into btrfs_mount(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index a381f9f9b0c..8901b6c8526 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -634,7 +634,6 @@ static int btrfs_fill_super(struct super_block *sb,
fail_close:
close_ctree(tree_root);
- free_fs_info(fs_info);
return err;
}
@@ -947,6 +946,7 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags,
error = btrfs_fill_super(s, fs_devices, data,
flags & MS_SILENT ? 1 : 0);
if (error) {
+ free_fs_info(fs_info);
deactivate_locked_super(s);
return ERR_PTR(error);
}