mm-debug-print-vm_refcnt-state-when-dumping-the-vma.patch removed from -mm tree
The quilt patch titled
Subject: mm/debug: print vm_refcnt state when dumping the vma
has been removed from the -mm tree. Its filename was
mm-debug-print-vm_refcnt-state-when-dumping-the-vma.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Suren Baghdasaryan <[email protected]>
Subject: mm/debug: print vm_refcnt state when dumping the vma
Date: Thu, 13 Feb 2025 14:46:51 -0800
vm_refcnt encodes a number of useful states:
- whether vma is attached or detached
- the number of current vma readers
- presence of a vma writer
Let's include it in the vma dump.
---
mm/debug.c | 6 ++++++ 1 file changed, 6 insertions(+)
mm/debug.c renamed from mm/debug.c~mm-debug-print-vm_refcnt-state-when-dumping-the-vma +6 -0
@@ -181,11 +181,17 @@ void dump_vma(const struct vm_area_struc pr_emerg("vma %px start %px end %px mm %px\n" "prot %lx anon_vma %px vm_ops %px\n" "pgoff %lx file %px private_data %px\n" +#ifdef CONFIG_PER_VMA_LOCK + "refcnt %x\n" +#endif"flags: %#lx(%pGv)\n" , vma, (void *)vma->vm_start, (void *)vma->vm_end, vma->vm_mm, (unsigned long )pgprot_val (vma->vm_page_prot), vma->anon_vma, vma->vm_ops, vma->vm_pgoff, vma->vm_file, vma->vm_private_data, +#ifdef CONFIG_PER_VMA_LOCK +refcount_read (&vma->vm_refcnt), +#endif vma->vm_flags, &vma->vm_flags); }EXPORT_SYMBOL (dump_vma);
_
Patches currently in -mm which might be from [email protected] are