mm: tweak __vma_enter_locked()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 19 Nov 2025 04:26:35 +0000 (04:26 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 24 Nov 2025 23:08:55 +0000 (15:08 -0800)
commitecf371b2cabee6a2bfb61f87d71c9f02a9ff34d7
tree2fb824b2c9c0ea1b01ed91d49ada55aac122ba0d
parent31807483d3952059d395c2a73b1fa9625db9b366
mm: tweak __vma_enter_locked()

Move the commentary on how __vma_enter_locked() behaves from the body of
__vma_start_write() to the head of __vma_enter_locked() and merge it with
the existing documentation.  Also add a call to
mmap_assert_write_locked().

Link: https://lkml.kernel.org/r/20251119042639.3937024-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap_lock.c