readahead: apply max_sane_readahead() limit in ondemand_readahead()
authorWu Fengguang <fengguang.wu@intel.com>
Tue, 16 Jun 2009 22:31:21 +0000 (15:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 02:47:28 +0000 (19:47 -0700)
commitfc31d16add13773265cc53d59f2e7594cb3c0a14
treefe67988da0a8b7bd08cdf3da95c852373638e06b
parentf7e839dd36fd940b0202cfb7d39b2a1b2dc59b1b
readahead: apply max_sane_readahead() limit in ondemand_readahead()

Just in case someone aggressively sets a huge readahead size.

Cc: Nick Piggin <npiggin@suse.de>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Ying Han <yinghan@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/readahead.c