summaryrefslogtreecommitdiffstats
path: root/mm/page_vma_mapped.c
diff options
context:
space:
mode:
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>2017-05-03 14:55:28 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2017-05-03 15:52:11 -0700
commit5e451be75ca51dd45a77a6409a30a0de39dc15c8 (patch)
treeadcd585bd3b2417ac96afddfd3b8aebfbd5cce4a /mm/page_vma_mapped.c
parent97167a7681e9a587ee75955bcbbf27e90f0883b9 (diff)
downloadlinux-stable-5e451be75ca51dd45a77a6409a30a0de39dc15c8.tar.gz
linux-stable-5e451be75ca51dd45a77a6409a30a0de39dc15c8.tar.bz2
linux-stable-5e451be75ca51dd45a77a6409a30a0de39dc15c8.zip
mm/madvise: move up the behavior parameter validation
madvise_behavior_valid() should be called before acting upon the behavior parameter. Hence move up the function. This also includes MADV_SOFT_OFFLINE and MADV_HWPOISON options as valid behavior parameter for the system call madvise(). Link: http://lkml.kernel.org/r/20170418052844.24891-1-khandual@linux.vnet.ibm.com Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com> Acked-by: David Rientjes <rientjes@google.com> Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_vma_mapped.c')
0 files changed, 0 insertions, 0 deletions