mm: fix some minor per-VMA lock issues in userfaultfd
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 26 Apr 2024 14:45:02 +0000 (15:45 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:54 +0000 (17:53 -0700)
commit73b4a0cd8243709870701349611722ba3c351815
treef6721da2b4d95e28d6fbd14923b4f9afbb182a47
parenta373baed5a9dca65a4d9fa55e61800a18c9936f1
mm: fix some minor per-VMA lock issues in userfaultfd

Rename lock_vma() to uffd_lock_vma() because it really is uffd specific.
Remove comment referencing unlock_vma() which doesn't exist.  Fix the
comment about lock_vma_under_rcu() which I just made incorrect.

Link: https://lkml.kernel.org/r/20240426144506.1290619-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jann Horn <jannh@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/userfaultfd.c