diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-11-17 15:40:49 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-08 19:35:37 -0500 |
commit | 815745cf3e46681241ad8025602ffbf2a452d514 (patch) | |
tree | 7902ae81b199b383b5552e71b6d1cd21aff17fdb /fs/btrfs/disk-io.c | |
parent | 59553edf110e5576d91be9dd5bd53d110e0d0290 (diff) |
btrfs: let ->s_fs_info point to fs_info, not root...
the latter can be obtained from the former (by looking as ->tree_root)
just as cheaply as we currently are doing the other way round.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index b6d11eb4e430..f7d8b9ba519b 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1894,8 +1894,8 @@ int open_ctree(struct super_block *sb, | |||
1894 | struct btrfs_key location; | 1894 | struct btrfs_key location; |
1895 | struct buffer_head *bh; | 1895 | struct buffer_head *bh; |
1896 | struct btrfs_super_block *disk_super; | 1896 | struct btrfs_super_block *disk_super; |
1897 | struct btrfs_root *tree_root = btrfs_sb(sb); | 1897 | struct btrfs_fs_info *fs_info = btrfs_sb(sb); |
1898 | struct btrfs_fs_info *fs_info = tree_root->fs_info; | 1898 | struct btrfs_root *tree_root = fs_info->tree_root; |
1899 | struct btrfs_root *extent_root; | 1899 | struct btrfs_root *extent_root; |
1900 | struct btrfs_root *csum_root; | 1900 | struct btrfs_root *csum_root; |
1901 | struct btrfs_root *chunk_root; | 1901 | struct btrfs_root *chunk_root; |