summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-17 15:40:49 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-08 19:35:37 -0500
commit815745cf3e46681241ad8025602ffbf2a452d514 (patch)
tree7902ae81b199b383b5552e71b6d1cd21aff17fdb /fs/btrfs/disk-io.c
parent59553edf110e5576d91be9dd5bd53d110e0d0290 (diff)
downloadop-kernel-dev-815745cf3e46681241ad8025602ffbf2a452d514.zip
op-kernel-dev-815745cf3e46681241ad8025602ffbf2a452d514.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index b6d11eb..f7d8b9b 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1894,8 +1894,8 @@ int open_ctree(struct super_block *sb,
struct btrfs_key location;
struct buffer_head *bh;
struct btrfs_super_block *disk_super;
- struct btrfs_root *tree_root = btrfs_sb(sb);
- struct btrfs_fs_info *fs_info = tree_root->fs_info;
+ struct btrfs_fs_info *fs_info = btrfs_sb(sb);
+ struct btrfs_root *tree_root = fs_info->tree_root;
struct btrfs_root *extent_root;
struct btrfs_root *csum_root;
struct btrfs_root *chunk_root;
OpenPOWER on IntegriCloud