radix_tree: clean away saw_unset_tag leftovers
authorHugh Dickins <hughd@google.com>
Tue, 1 Nov 2011 00:07:02 +0000 (17:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 1 Nov 2011 00:30:45 +0000 (17:30 -0700)
commit3fa36acbced23c563345de3179dfe1775f15be5e
tree83ad10f4dda426ee3708bc67c9fc88b6c1c8cc34
parent0dabec93de633a87adfbbe1d800a4c56cd19d73b
radix_tree: clean away saw_unset_tag leftovers

radix_tree_tag_get()'s BUG (when it sees a tag after saw_unset_tag) was
unsafe and removed in 2.6.34, but the pointless saw_unset_tag left behind.

Remove it now, and return 0 as soon as we see unset tag - we already rely
upon the root tag to be correct, returning 0 immediately if it's not set.

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/radix-tree.c