]> git.karo-electronics.de Git - karo-tx-linux.git/commit
radix_tree_tag_get()'s BUG (when it sees a tag after saw_unset_tag) was
authorHugh Dickins <hughd@google.com>
Wed, 24 Aug 2011 23:46:48 +0000 (09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 16 Sep 2011 05:50:26 +0000 (15:50 +1000)
commit7140fc2bf40f3a3d43bdc638dab1f09ed5bd318d
tree87af30be7b7b1a00f281f82f3260137496b5f913
parent66a64bc599948feb0445f11f8b3fc58d4f58bfe9
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