diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2017-02-23 00:46:39 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-02-23 01:41:30 +0100 |
commit | 235190738aba7c5c94300c8d882842a535280e5a (patch) | |
tree | 248190ec7e28752ff5971bf9be7dcb9a1b3faefe /mm/memblock.c | |
parent | mm: drop unused argument of zap_page_range() (diff) | |
download | linux-235190738aba7c5c94300c8d882842a535280e5a.tar.xz linux-235190738aba7c5c94300c8d882842a535280e5a.zip |
oom-reaper: use madvise_dontneed() logic to decide if unmap the VMA
Logic on whether we can reap pages from the VMA should match what we
have in madvise_dontneed(). In particular, we should skip, VM_PFNMAP
VMAs, but we don't now.
Let's just extract condition on which we can shoot down pagesi from a
VMA with MADV_DONTNEED into separate function and use it in both places.
Link: http://lkml.kernel.org/r/20170118122429.43661-4-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memblock.c')
0 files changed, 0 insertions, 0 deletions