aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
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 /fs/btrfs/disk-io.c
parent6d7231f7d33fc14f2d41abc3b9cb28dcb208735d (diff)
Btrfs: Properly setup root key while reading the root
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-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 5accced2858a..5a7e60d7f443 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,
410 read_extent_buffer(l, &root->root_item, 410 read_extent_buffer(l, &root->root_item,
411 btrfs_item_ptr_offset(l, path->slots[0]), 411 btrfs_item_ptr_offset(l, path->slots[0]),
412 sizeof(root->root_item)); 412 sizeof(root->root_item));
413 memcpy(&root->root_key, location, sizeof(*location));
413 ret = 0; 414 ret = 0;
414out: 415out:
415 btrfs_release_path(root, path); 416 btrfs_release_path(root, path);