]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: make madvise(MADV_WILLNEED) support swap file prefetch
authorShaohua Li <shli@kernel.org>
Wed, 20 Feb 2013 02:14:04 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:23 +0000 (16:52 +1100)
commit580fce60b8a01f883f7316cf848217f3f4c622c9
tree55a9b3104a851381899552f473a972e3946201ae
parentcc124de9e3681ab702df520e584eaf2aec769b9d
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.

Signed-off-by: Shaohua Li <shli@fusionio.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/madvise.c