diff options
author | Wu Fengguang <[email protected]> | 2011-05-24 17:12:28 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-05-25 08:39:26 -0700 |
commit | 275b12bf5486f6f531111fd3d7dbbf01df427cfe (patch) | |
tree | ebed0109eaa3e4a015bc1653f4d933f2e84c794f /tools/perf/scripts/python | |
parent | 1495f230fa7750479c79e3656286b9183d662077 (diff) |
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 <[email protected]>
Tested-by: Tim Chen <[email protected]>
Reported-by: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions