]> git.baikalelectronics.ru Git - kernel.git/commit
mm: mempolicy: skip inaccessible VMAs when setting MPOL_MF_LAZY
authorMel Gorman <mgorman@suse.de>
Thu, 9 Oct 2014 22:29:36 +0000 (15:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Oct 2014 02:26:02 +0000 (22:26 -0400)
commit681b57a6c2001f190e99337299cbc746b9b9fb25
treeb5bb4dd21c620286930404d173cf1d6ce16ef837
parent8077d5377461a15e85b1bd5b913843026631c2fe
mm: mempolicy: skip inaccessible VMAs when setting MPOL_MF_LAZY

PROT_NUMA VMAs are skipped to avoid problems distinguishing between
present, prot_none and special entries.  MPOL_MF_LAZY is not visible from
userspace since commit 7f7393137fd4 ("mm: mempolicy: Hide MPOL_NOOP and
MPOL_MF_LAZY from userspace for now") but it should still skip VMAs the
same way task_numa_work does.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Hugh Dickins <hughd@google.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c