From: Nadav Amit <namit@xxxxxxxxxx> Userfaultfd users, for the sake of memory management, debugging or other types of monitoring may wish to use process_madvise(MADV_DONTNEED). Moreover, since process_madvise() supports vectored operations, and now supports efficient TLB flushes, existing users of madvise(MADV_DONTNEED) that wish to perform advices on non-contiguous memory may prefer the vectored process_madvise() flavor for performance reasons. Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Cc: Colin Cross <ccross@xxxxxxxxxx> Cc: Suren Baghdasarya <surenb@xxxxxxxxxx> Cc: Mike Rapoport <rppt@xxxxxxxxxxxxxxxxxx> Signed-off-by: Nadav Amit <namit@xxxxxxxxxx> --- mm/madvise.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/madvise.c b/mm/madvise.c index 9528c38fb6a4..d8f70960680e 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -81,6 +81,7 @@ static const struct madvise_info madvise_info[MADV_SOFT_OFFLINE+1] = { }, [MADV_DONTNEED] = { .behavior_valid = 1, + .process_behavior_valid = 1, .need_mmap_read_only = 1, .tlb_batching = 1, }, -- 2.25.1