aboutsummaryrefslogtreecommitdiffstats
path: root/disk-io.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-01-07 17:23:43 +0800
committerDavid Sterba <dsterba@suse.cz>2015-01-09 18:49:44 +0100
commit56eecbe0fea6db27b34d46798b92070c12ada45b (patch)
tree630a423248db0d088894a8ce1941a439d921f9ac /disk-io.c
parentdbed21e7c20d3f85d6edffe7cd25353af0569278 (diff)
downloadbtrfs-progs-56eecbe0fea6db27b34d46798b92070c12ada45b.tar.gz
btrfs-progs-56eecbe0fea6db27b34d46798b92070c12ada45b.tar.xz
btrfs-progs-56eecbe0fea6db27b34d46798b92070c12ada45b.zip
btrfs-progs: Fix a copy-n-paste bug in btrfs_read_fs_root().
Introduced in commit 96ec888aad41969 ("btrfs-progs: add quota group verify code"). Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'disk-io.c')
-rw-r--r--disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-io.c b/disk-io.c
index 2bf8586..b853f66 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -693,7 +693,7 @@ struct btrfs_root *btrfs_read_fs_root(struct btrfs_fs_info *fs_info,
if (location->objectid == BTRFS_CSUM_TREE_OBJECTID)
return fs_info->csum_root;
if (location->objectid == BTRFS_QUOTA_TREE_OBJECTID)
- return fs_info->csum_root;
+ return fs_info->quota_root;
BUG_ON(location->objectid == BTRFS_TREE_RELOC_OBJECTID ||
location->offset != (u64)-1);