Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20364
b: refs/heads/master
c: 90f9dd8
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Feb 16, 2006
1 parent e085d0b commit 1255334
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: d89b8f40fca43cab829fea5c0e7d3951db2fb4bd
refs/heads/master: 90f9dd8f72773152b69042debd6b9ed6d224703a
10 changes: 6 additions & 4 deletions trunk/lib/radix-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,12 +752,14 @@ void *radix_tree_delete(struct radix_tree_root *root, unsigned long index)
*/
nr_cleared_tags = 0;
for (tag = 0; tag < RADIX_TREE_TAGS; tag++) {
tags[tag] = 1;
if (tag_get(pathp->node, tag, pathp->offset)) {
tag_clear(pathp->node, tag, pathp->offset);
tags[tag] = 0;
nr_cleared_tags++;
} else
tags[tag] = 1;
if (!any_tag_set(pathp->node, tag)) {
tags[tag] = 0;
nr_cleared_tags++;
}
}
}

for (pathp--; nr_cleared_tags && pathp->node; pathp--) {
Expand Down

0 comments on commit 1255334

Please sign in to comment.