commit | 44b36eb20bb60d7da1375c1fb45784740a4dc358 | [log] [tgz] |
---|---|---|
author | Yan Zheng <yanzheng@21cn.com> | Fri Oct 19 09:22:56 2007 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Sep 25 11:03:57 2008 -0400 |
tree | 5ed29ca6e55df2bd94c4b8f4e01a4de476fb81f8 | |
parent | 6d7231f7d33fc14f2d41abc3b9cb28dcb208735d [diff] [blame] |
Btrfs: Properly setup root key while reading the root Signed-off-by: Chris Mason <chris.mason@oracle.com>
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 @@ 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);