]> git.kernelconcepts.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>
Mon, 12 Sep 2011 05:27:16 +0000 (15:27 +1000)
commitd3d8b42f54f3af82dfaff8dc0c26454b5cf1626c
treee063c8369d397b09863f1db3a1d42d1d87b3ee69
parent79a37131d3d21631b92a4e4fe7311433c2909519
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