From: Yan Zheng Date: Fri, 19 Oct 2007 13:22:56 +0000 (-0400) Subject: Btrfs: Properly setup root key while reading the root X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~449 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=44b36eb20bb60d7da1375c1fb45784740a4dc358;p=karo-tx-linux.git Btrfs: Properly setup root key while reading the root Signed-off-by: Chris Mason --- 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);