]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm: limit the scope of vma_start_read()
authorSuren Baghdasaryan <surenb@google.com>
Mon, 4 Aug 2025 23:33:48 +0000 (16:33 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 23:54:43 +0000 (16:54 -0700)
commitcc483b328881bbccb55265a86731384d5176fe85
treeede40bcaa97001785f8405faf2ee095478c70fc3
parent35edbaa04a460531862d3f00c1c2bb0d5e45cd5d
mm: limit the scope of vma_start_read()

Limit the scope of vma_start_read() as it is used only as a helper for
higher-level locking functions implemented inside mmap_lock.c and we are
about to introduce more complex RCU rules for this function.  The change
is pure code refactoring and has no functional changes.

Link: https://lkml.kernel.org/r/20250804233349.1278678-1-surenb@google.com
Suggested-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Jann Horn <jannh@google.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmap_lock.h
mm/mmap_lock.c