aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2017-02-22 23:46:39 +0000
committerLinus Torvalds <[email protected]>2017-02-23 00:41:30 +0000
commit235190738aba7c5c94300c8d882842a535280e5a (patch)
tree248190ec7e28752ff5971bf9be7dcb9a1b3faefe /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentmm: drop unused argument of zap_page_range() (diff)
downloadkernel-235190738aba7c5c94300c8d882842a535280e5a.tar.gz
kernel-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/[email protected] Signed-off-by: Kirill A. Shutemov <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Tetsuo Handa <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rik van Riel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions