mm-print-more-details-for-bad_page.patch removed from -mm tree
Subsystems (4)
[email protected]
maintainerSubject: [merged] mm-print-more-details-for-bad_page.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 24 Jan 2014 10:58:25 -0800
The patch titled
Subject: mm: print more details for bad_page()
has been removed from the -mm tree. Its filename was
mm-print-more-details-for-bad_page.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Dave Hansen <[email protected]>
Subject: mm: print more details for bad_page()
bad_page() is cool in that it prints out a bunch of data about the page. But, I can never remember which page flags are good and which are bad, or whether ->index or ->mapping is required to be NULL.
This patch allows bad/dump_page() callers to specify a string about why they are dumping the page and adds explanation strings to a number of places. It also adds a 'bad_flags' argument to bad_page(), which it then dumps out separately from the flags which are actually set.
This way, the messages will show specifically why the page was bad, *specifically* which flags it is complaining about, if it was a page flag combination which was the problem.
---
include/linux/mm.h | 4 +- mm/balloon_compaction.c | 4 +- mm/memory.c | 2 - mm/memory_hotplug.c | 2 - mm/page_alloc.c | 73 ++++++++++++++++++++++++++++---------- 5 files changed, 62 insertions(+), 23 deletions(-)
include/linux/mm.h renamed from include/linux/mm.h~mm-print-more-details-for-bad_page +3 -1
@@ -2029,7 +2029,9 @@ extern void shake_page(struct page *p, iextern atomic_long_t num_poisoned_pages;extern int soft_offline_page (struct page *page,int flags); -extern void dump_page (struct page *page); +extern void dump_page (struct page *page,char *reason); +extern void dump_page_badflags (struct page *page,char *reason, +unsigned long badflags);#if defined(CONFIG_TRANSPARENT_HUGEPAGE ) || defined(CONFIG_HUGETLBFS ) extern void clear_huge_page(struct page *page,
mm/balloon_compaction.c renamed from mm/balloon_compaction.c~mm-print-more-details-for-bad_page +2 -2
@@ -267,7 +267,7 @@ void balloon_page_putback(struct page *pput_page (page); }else {WARN_ON (1 ); -dump_page (page); +dump_page (page,"not movable balloon page" ); }unlock_page (page); }
@@ -287,7 +287,7 @@ int balloon_page_migrate(struct page *neBUG_ON (!trylock_page (newpage));if (WARN_ON (!__is_movable_balloon_page (page))) { -dump_page (page); +dump_page (page,"not movable balloon page" );unlock_page (newpage);return rc; }
mm/memory.c renamed from mm/memory.c~mm-print-more-details-for-bad_page +1 -1
@@ -671,7 +671,7 @@ static void print_bad_pte(struct vm_area current->comm, (long long)pte_val(pte), (long long)pmd_val(*pmd));if (page) -dump_page (page); +dump_page (page,"bad pte" );printk (KERN_ALERT "addr:%p vm_flags:%08lx anon_vma:%p mapping:%p index:%lx\n" , (void *)addr, vma->vm_flags, vma->anon_vma, mapping, index);
mm/memory_hotplug.c renamed from mm/memory_hotplug.c~mm-print-more-details-for-bad_page +1 -1
@@ -1309,7 +1309,7 @@ do_migrate_range(unsigned long start_pfn#ifdef CONFIG_DEBUG_VM printk (KERN_ALERT "removing pfn %lx from LRU failed\n" , pfn); -dump_page (page); +dump_page (page,"failed to remove from LRU" );#endif put_page (page);/* Because we don't have big zone->lock. we should
mm/page_alloc.c renamed from mm/page_alloc.c~mm-print-more-details-for-bad_page +55 -18
120 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
origin.patch