]> 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>
Wed, 12 Oct 2011 06:32:00 +0000 (17:32 +1100)
commit52513fa9894371df3d0730d0272b95aa03ec2591
treee14354809730a62ff222ecded9267a67b1eebae7
parent0eb8492910965d2d6f94de70087ec5211bfe4fcf
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