summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2023-01-02 17:08:55 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-01-19 02:12:57 +0100
commitb6b7a8faf05c709cd9f63d3b7d9c66bd91bc3b0d (patch)
treee9314f6d0ce7fd59966ee70989134666ed5b477a /drivers/misc
parentmm/nommu: factor out check for NOMMU shared mappings into is_nommu_shared_map... (diff)
downloadlinux-b6b7a8faf05c709cd9f63d3b7d9c66bd91bc3b0d.tar.xz
linux-b6b7a8faf05c709cd9f63d3b7d9c66bd91bc3b0d.zip
mm/nommu: don't use VM_MAYSHARE for MAP_PRIVATE mappings
Let's stop using VM_MAYSHARE for MAP_PRIVATE mappings and use VM_MAYOVERLAY instead. Rewrite determine_vm_flags() to make the whole logic easier to digest, and to cleanly separate MAP_PRIVATE vs. MAP_SHARED. No functional change intended. Link: https://lkml.kernel.org/r/20230102160856.500584-3-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jens Axboe <axboe@kernel.dk> Cc: Nicolas Pitre <nico@fluxnic.net> Cc: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions