diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-04-26 15:45:03 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-05-05 17:53:54 -0700 |
commit | 737019cf6ac5babb75645ad324aeead7bc04749d (patch) | |
tree | 5f5ddc7a9b895153e78dcadbd372631ead28d337 /sound | |
parent | 73b4a0cd8243709870701349611722ba3c351815 (diff) |
mm: optimise vmf_anon_prepare() for VMAs without an anon_vma
If the mmap_lock can be taken for read, we can call __anon_vma_prepare()
while holding it, saving ourselves a trip back through the fault handler.
Link: https://lkml.kernel.org/r/20240426144506.1290619-5-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Jann Horn <jannh@google.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions