summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYan Zheng <yanzheng@21cn.com>2007-10-19 09:22:56 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:57 -0400
commit44b36eb20bb60d7da1375c1fb45784740a4dc358 (patch)
tree5ed29ca6e55df2bd94c4b8f4e01a4de476fb81f8
parent6d7231f7d33fc14f2d41abc3b9cb28dcb208735d (diff)
downloadop-kernel-dev-44b36eb20bb60d7da1375c1fb45784740a4dc358.zip
op-kernel-dev-44b36eb20bb60d7da1375c1fb45784740a4dc358.tar.gz
Btrfs: Properly setup root key while reading the root
Signed-off-by: Chris Mason <chris.mason@oracle.com>
-rw-r--r--fs/btrfs/disk-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 5accced..5a7e60d 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -410,6 +410,7 @@ struct btrfs_root *btrfs_read_fs_root_no_radix(struct btrfs_fs_info *fs_info,
read_extent_buffer(l, &root->root_item,
btrfs_item_ptr_offset(l, path->slots[0]),
sizeof(root->root_item));
+ memcpy(&root->root_key, location, sizeof(*location));
ret = 0;
out:
btrfs_release_path(root, path);
OpenPOWER on IntegriCloud