git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
mm
/
prio_tree.c
diff --git
a/mm/prio_tree.c
b/mm/prio_tree.c
index
3bd8d5a
..
2a1d02f
100644
(file)
--- a/
mm/prio_tree.c
+++ b/
mm/prio_tree.c
@@
-245,7
+245,7
@@
static struct prio_tree_node *prio_tree_insert(struct prio_tree_root *root,
mask >>= 1;
if (!mask) {
mask >>= 1;
if (!mask) {
- mask = 1UL << (
BITS_PER_LONG
- 1);
+ mask = 1UL << (
root->index_bits
- 1);
size_flag = 1;
}
}
size_flag = 1;
}
}
@@
-334,7
+334,7
@@
static struct prio_tree_node *prio_tree_left(struct prio_tree_iter *iter,
iter->mask = ULONG_MAX;
} else {
iter->size_level = 1;
iter->mask = ULONG_MAX;
} else {
iter->size_level = 1;
- iter->mask = 1UL << (
BITS_PER_LONG
- 1);
+ iter->mask = 1UL << (
iter->root->index_bits
- 1);
}
}
return iter->cur;
}
}
return iter->cur;
@@
-376,7
+376,7
@@
static struct prio_tree_node *prio_tree_right(struct prio_tree_iter *iter,
iter->mask = ULONG_MAX;
} else {
iter->size_level = 1;
iter->mask = ULONG_MAX;
} else {
iter->size_level = 1;
- iter->mask = 1UL << (
BITS_PER_LONG
- 1);
+ iter->mask = 1UL << (
iter->root->index_bits
- 1);
}
}
return iter->cur;
}
}
return iter->cur;