mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
mmap locking API: convert mmap_sem API comments
Convert comments that reference old mmap_sem APIs to reference corresponding new mmap locking APIs instead. Signed-off-by: Michel Lespinasse <walken@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Vlastimil Babka <vbabka@suse.cz> Reviewed-by: Davidlohr Bueso <dbueso@suse.de> Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com> Cc: David Rientjes <rientjes@google.com> Cc: Hugh Dickins <hughd@google.com> Cc: Jason Gunthorpe <jgg@ziepe.ca> Cc: Jerome Glisse <jglisse@redhat.com> Cc: John Hubbard <jhubbard@nvidia.com> Cc: Laurent Dufour <ldufour@linux.ibm.com> Cc: Liam Howlett <Liam.Howlett@oracle.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ying Han <yinghan@google.com> Link: http://lkml.kernel.org/r/20200520052908.204642-12-walken@google.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
da1c55f1b2
commit
3e4e28c5a8
@@ -1734,7 +1734,7 @@ int tcp_mmap(struct file *file, struct socket *sock,
|
||||
return -EPERM;
|
||||
vma->vm_flags &= ~(VM_MAYWRITE | VM_MAYEXEC);
|
||||
|
||||
/* Instruct vm_insert_page() to not down_read(mmap_sem) */
|
||||
/* Instruct vm_insert_page() to not mmap_read_lock(mm) */
|
||||
vma->vm_flags |= VM_MIXEDMAP;
|
||||
|
||||
vma->vm_ops = &tcp_vm_ops;
|
||||
|
||||
Reference in New Issue
Block a user