diff options
| author | Shaohua Li <[email protected]> | 2013-02-22 16:32:31 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-02-23 17:50:10 -0800 |
| commit | 1998cc048901109a29924380b8e91bc049b32951 (patch) | |
| tree | 71c6875e8a9a6da14899f74e2dd3168d99374bd5 /tools/perf/scripts/python | |
| parent | a394cb8ee632ec5edce20309901ec66767497a43 (diff) | |
mm: make madvise(MADV_WILLNEED) support swap file prefetch
Make madvise(MADV_WILLNEED) support swap file prefetch. If memory is
swapout, this syscall can do swapin prefetch. It has no impact if the
memory isn't swapout.
[[email protected]: fix CONFIG_SWAP=n build]
[[email protected]: fix BUG on madvise early failure]
Signed-off-by: Shaohua Li <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Rik van Riel <[email protected]>
Signed-off-by: Sasha Levin <[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