summaryrefslogtreecommitdiffstats
path: root/mm/memory-failure.c
diff options
context:
space:
mode:
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>2017-05-03 23:55:28 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-05-04 00:52:11 +0200
commit5e451be75ca51dd45a77a6409a30a0de39dc15c8 (patch)
treeadcd585bd3b2417ac96afddfd3b8aebfbd5cce4a /mm/memory-failure.c
parentmm/madvise.c: clean up MADV_SOFT_OFFLINE and MADV_HWPOISON (diff)
downloadlinux-5e451be75ca51dd45a77a6409a30a0de39dc15c8.tar.xz
linux-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/memory-failure.c')
0 files changed, 0 insertions, 0 deletions