]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: make madvise(MADV_WILLNEED) support swap file prefetch
authorShaohua Li <shli@kernel.org>
Thu, 7 Feb 2013 01:26:15 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:19 +0000 (16:46 +1100)
commit7b8b731661cb6aa2e7d3e06c128e204ffd30c7b4
tree6595c0b1b925911a1fa8ace1a229d7be616f4bc4
parent2949f0d8755e7f1cb7766f4f6ad3fe887c5b0a03
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