Wu Fengguang 275b12bf54 readahead: return early when readahead is disabled
Reduce readahead overheads by returning early in do_sync_mmap_readahead().

tmpfs has ra_pages=0 and it can page fault really fast (not constraint by
IO if not swapping).

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Tested-by: Tim Chen <tim.c.chen@intel.com>
Reported-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-05-25 08:39:26 -07:00
..
2011-03-31 11:26:23 -03:00
2009-04-01 08:59:13 -07:00
2011-05-25 08:39:18 -07:00
2011-05-25 08:39:18 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2009-09-22 07:17:35 -07:00
2011-05-25 08:39:19 -07:00
2010-03-24 16:31:21 -07:00
2011-01-13 17:32:46 -08:00
2011-05-25 08:39:18 -07:00
2010-05-21 18:31:21 -04:00
2011-03-31 11:26:23 -03:00
2011-03-10 08:52:27 +01:00
2011-05-20 12:50:29 -07:00
2011-05-20 12:50:29 -07:00
2011-03-31 11:26:23 -03:00
2011-03-10 08:52:07 +01:00
2009-06-23 12:50:05 -07:00
2011-03-22 17:44:03 -07:00
2011-05-25 08:39:05 -07:00