Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272112
b: refs/heads/master
c: 3fa36ac
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Nov 1, 2011
1 parent 2801ddf commit defd226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0dabec93de633a87adfbbe1d800a4c56cd19d73b
refs/heads/master: 3fa36acbced23c563345de3179dfe1775f15be5e
10 changes: 2 additions & 8 deletions trunk/lib/radix-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,6 @@ int radix_tree_tag_get(struct radix_tree_root *root,
{
unsigned int height, shift;
struct radix_tree_node *node;
int saw_unset_tag = 0;

/* check the root's tag bit */
if (!root_tag_get(root, tag))
Expand All @@ -603,15 +602,10 @@ int radix_tree_tag_get(struct radix_tree_root *root,
return 0;

offset = (index >> shift) & RADIX_TREE_MAP_MASK;

/*
* This is just a debug check. Later, we can bale as soon as
* we see an unset tag.
*/
if (!tag_get(node, tag, offset))
saw_unset_tag = 1;
return 0;
if (height == 1)
return !!tag_get(node, tag, offset);
return 1;
node = rcu_dereference_raw(node->slots[offset]);
shift -= RADIX_TREE_MAP_SHIFT;
height--;
Expand Down

0 comments on commit defd226

Please sign in to comment.