]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
extra debug
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 28 Feb 2020 20:46:27 +0000 (15:46 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 19:03:31 +0000 (15:03 -0400)
mm/mmap.c

index 420886dd90fffefb8bbb7dbcd4b9d94952441b11..b9113bf199f6cc2afffa74b4827937e9df52fc30 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -2347,6 +2347,7 @@ found_highest:
        VM_BUG_ON(gap_end < gap_start);
 
        if (gap != gap_end) {
+               struct vm_area_struct *rb_find_vma(struct mm_struct *mm, unsigned long addr);
                pr_err("%s: %px Gap was found: mt %lu gap_end %lu\n", __func__,
                                mm, gap, gap_end);
                pr_err("window was %lu - %lu size %lu\n", info->high_limit,
@@ -2355,7 +2356,16 @@ found_highest:
                                mas.last);
                pr_err("mas.index %lu align %lu offset %lu\n", mas.index,
                                info->align_offset, info->align_mask);
+               pr_err("rb_find_vma find on %lu => %px (%px)\n", mas.index,
+                               rb_find_vma(mm, mas.index), vma);
                mt_dump(&mm->mm_mt);
+               {
+                       struct vm_area_struct *dv = mm->mmap;
+                       while (dv) {
+                               printk("vma %px %llu-%llu\n", dv, dv->vm_start, dv->vm_end);
+                               dv = dv->vm_next;
+                       }
+               }
        }
        VM_BUG_ON(gap != gap_end);