Re: Possibly bug in radix_tree_delete, and fix.

From: Neil Brown
Date: Wed Feb 15 2006 - 22:46:18 EST


On Thursday February 16, nickpiggin@xxxxxxxxxxxx wrote:
>
> It should be basically an identical block to the one below in the main
> loop, yeah? You're missing the nr_cleared_tags bit.
>
> Something like:
>
> tags[tag] = 1;
> if (tag_get(pathp->node, tag, pathp->offset)) {
> tag_clear(pathp->node, tag, pathp->offset);
> if (!any_tag_set(pathp->node, tag)) {
> tags[tag] = 0;
> nr_cleared_tags++;
> }
> }
>
> And you can add an
> Acked-by: Nick Piggin <npiggin@xxxxxxx>

Yes, that's clearly better. I've sent the revised patch out.

Thanks,
NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/