]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: introduce vma detached flag
authorSuren Baghdasaryan <surenb@google.com>
Mon, 27 Feb 2023 17:36:21 +0000 (09:36 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:10 +0000 (16:02 -0700)
commitd788b448c4f43e128ff209cc349d3d7ec048ea85
tree1ea3633133660612909cdb2a2d33cb62d6ff4dcf
parent37436f36049e6f9456504dfa3b41948d8efebd7d
mm: introduce vma detached flag

Per-vma locking mechanism will search for VMA under RCU protection and
then after locking it, has to ensure it was not removed from the VMA tree
after we found it.  To make this check efficient, introduce a
vma->detached flag to mark VMAs which were removed from the VMA tree.

Link: https://lkml.kernel.org/r/20230227173632.3292573-23-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
include/linux/mm_types.h
mm/mmap.c