]> Git Repo - linux.git/commit
mm: make madvise(MADV_WILLNEED) support swap file prefetch
authorShaohua Li <[email protected]>
Sat, 23 Feb 2013 00:32:31 +0000 (16:32 -0800)
committerLinus Torvalds <[email protected]>
Sun, 24 Feb 2013 01:50:10 +0000 (17:50 -0800)
commit1998cc048901109a29924380b8e91bc049b32951
tree71c6875e8a9a6da14899f74e2dd3168d99374bd5
parenta394cb8ee632ec5edce20309901ec66767497a43
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]>
mm/madvise.c
This page took 0.054454 seconds and 4 git commands to generate.