aboutsummaryrefslogtreecommitdiffstats
path: root/random-test.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-02-26 10:55:42 -0500
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-02-26 10:55:42 -0500
commited0a072aca5ada8c92fece4084a7db374d8998de (patch)
tree27d74ea84a5ffdcc5ad66abf554b27d3424fdf91 /random-test.c
parent46db63cb16d6ebf03a0a31a7f0e23ee2069f4e04 (diff)
downloadbtrfs-progs-ed0a072aca5ada8c92fece4084a7db374d8998de.tar.gz
btrfs-progs-ed0a072aca5ada8c92fece4084a7db374d8998de.tar.xz
btrfs-progs-ed0a072aca5ada8c92fece4084a7db374d8998de.zip
32bit cleanups
Diffstat (limited to 'random-test.c')
-rw-r--r--random-test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/random-test.c b/random-test.c
index 111a248..7078263 100644
--- a/random-test.c
+++ b/random-test.c
@@ -40,15 +40,16 @@ static int ins_one(struct ctree_root *root, struct radix_tree_root *radix)
struct key key;
int ret;
char buf[128];
+ unsigned long oid;
init_path(&path);
ret = setup_key(radix, &key, 0);
sprintf(buf, "str-%Lu\n", key.objectid);
ret = insert_item(root, &key, buf, strlen(buf));
if (ret)
goto error;
+ oid = (unsigned long)key.objectid;
radix_tree_preload(GFP_KERNEL);
- ret = radix_tree_insert(radix, key.objectid,
- (void *)key.objectid);
+ ret = radix_tree_insert(radix, oid, (void *)oid);
radix_tree_preload_end();
if (ret)
goto error;