radix-tree: fix radix_tree_prev_hole() underflow case
authorCesar Eduardo Barros <cesarb@cesarb.net>
Wed, 26 May 2010 21:44:27 +0000 (14:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:53 +0000 (09:12 -0700)
commitedcd1d843adf09d1742d49ae04fa51bb63ddd1c3
tree7c0af77b470531f3a5e648cca232ec5821101385
parent9d85cba718efeef9ca00ce3f7f34f5880737aa9b
radix-tree: fix radix_tree_prev_hole() underflow case

radix_tree_prev_hole() used LONG_MAX to detect underflow; however,
ULONG_MAX is clearly what was intended, both here and by its only user
(count_history_pages at mm/readahead.c).

Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/radix-tree.c