diff options
| author | Chris Mason <chris.mason@oracle.com> | 2007-03-12 20:12:07 -0400 | 
|---|---|---|
| committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-12 20:12:07 -0400 | 
| commit | 0783fcfc4dc19b8bb99bd51b7afa669ba4cbd377 (patch) | |
| tree | 0d7d68c33e8ff954e7614395f05d01d47d107f05 /fs/btrfs/random-test.c | |
| parent | e2fa7227cdf132d72e7410dd0679dc573a1c2618 (diff) | |
| download | olio-linux-3.10-0783fcfc4dc19b8bb99bd51b7afa669ba4cbd377.tar.xz olio-linux-3.10-0783fcfc4dc19b8bb99bd51b7afa669ba4cbd377.zip  | |
Btrfs: struct item endian fixes
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/random-test.c')
| -rw-r--r-- | fs/btrfs/random-test.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/random-test.c b/fs/btrfs/random-test.c index 34a15841ebd..e767528bc52 100644 --- a/fs/btrfs/random-test.c +++ b/fs/btrfs/random-test.c @@ -173,7 +173,7 @@ static int empty_tree(struct ctree_root *root, struct radix_tree_root *radix,  			path.slots[0] -= 1;  		}  		slot = path.slots[0]; -		found = path.nodes[0]->leaf.items[slot].key.objectid; +		found=btrfs_key_objectid(&path.nodes[0]->leaf.items[slot].key);  		ret = del_item(root, &path);  		count++;  		if (ret) { @@ -274,7 +274,8 @@ static int fill_radix(struct ctree_root *root, struct radix_tree_root *radix)  			slot -= 1;  		}  		for (i = slot; i >= 0; i--) { -			found = path.nodes[0]->leaf.items[i].key.objectid; +			found = btrfs_key_objectid(&path.nodes[0]-> +						   leaf.items[i].key);  			radix_tree_preload(GFP_KERNEL);  			ret = radix_tree_insert(radix, found, (void *)found);  			if (ret) {  |