diff options
author | Yan Zheng <yanzheng@21cn.com> | 2007-10-19 17:22:56 +0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 19:03:57 +0400 |
commit | 44b36eb20bb60d7da1375c1fb45784740a4dc358 (patch) | |
tree | 5ed29ca6e55df2bd94c4b8f4e01a4de476fb81f8 | |
parent | 6d7231f7d33fc14f2d41abc3b9cb28dcb208735d (diff) | |
download | linux-44b36eb20bb60d7da1375c1fb45784740a4dc358.tar.xz |
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.c | 1 |
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, 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); |