]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-mmap-start-distinguishing-if-vma-can-be-removed-in-mergeability-test-fix.
authorVlastimil Babka <vbabka@suse.cz>
Wed, 5 Apr 2023 23:02:27 +0000 (16:02 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:27 +0000 (16:02 -0700)
adjust comment as suggested by Lorenzo

Link: https://lkml.kernel.org/r/74f2ea6c-f1a9-6dd7-260c-25e660f42379@suse.cz
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c

index fcbb54d9963387380bf63fa831ce526e71e9beeb..1435aa30d4b04a077496aad3f75706154c59717b 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -755,8 +755,8 @@ int vma_shrink(struct vma_iterator *vmi, struct vm_area_struct *vma,
 
 /*
  * If the vma has a ->close operation then the driver probably needs to release
- * per-vma resources, so we don't attempt to merge those in case the caller
- * indicates the current vma may be removed as part of the merge.
+ * per-vma resources, so we don't attempt to merge those if the caller indicates
+ * the current vma may be removed as part of the merge.
  */
 static inline bool is_mergeable_vma(struct vm_area_struct *vma,
                struct file *file, unsigned long vm_flags,