summaryrefslogtreecommitdiffstats
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorShaohua Li2013-02-23 01:32:31 +0100
committerLinus Torvalds2013-02-24 02:50:10 +0100
commit1998cc048901109a29924380b8e91bc049b32951 (patch)
tree71c6875e8a9a6da14899f74e2dd3168d99374bd5 /mm/compaction.c
parentmemcg,vmscan: do not break out targeted reclaim without reclaimed pages (diff)
downloadkernel-qcow2-linux-1998cc048901109a29924380b8e91bc049b32951.tar.gz
kernel-qcow2-linux-1998cc048901109a29924380b8e91bc049b32951.tar.xz
kernel-qcow2-linux-1998cc048901109a29924380b8e91bc049b32951.zip
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. [akpm@linux-foundation.org: fix CONFIG_SWAP=n build] [sasha.levin@oracle.com: fix BUG on madvise early failure] Signed-off-by: Shaohua Li <shli@fusionio.com> Cc: Hugh Dickins <hughd@google.com> Cc: Rik van Riel <riel@redhat.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/compaction.c')
0 files changed, 0 insertions, 0 deletions