]> git.karo-electronics.de Git - karo-tx-linux.git/commit
radix_tree: clean away saw_unset_tag leftovers
authorHugh Dickins <hughd@google.com>
Wed, 5 Oct 2011 00:42:47 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Oct 2011 05:49:00 +0000 (16:49 +1100)
commitd3e16cd6972a8b43e2a396025ff2e9202c7fdf74
tree8577b5989bbdf119e861172147f531187784a1cb
parentc5c17d8a25d766ec8ba0756f09eeaffd5646186b
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>
lib/radix-tree.c