rpms/kernel/FC-4 linux-2.6-vm-debug.patch, NONE, 1.1 kernel-2.6.spec, 1.1551, 1.1552
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Jan 3 13:59:14 UTC 2006
Author: davej
Update of /cvs/dist/rpms/kernel/FC-4
In directory cvs.devel.redhat.com:/tmp/cvs-serv28849
Modified Files:
kernel-2.6.spec
Added Files:
linux-2.6-vm-debug.patch
Log Message:
debug foo.
linux-2.6-vm-debug.patch:
rmap.c | 7 +++++++
1 files changed, 7 insertions(+)
--- NEW FILE linux-2.6-vm-debug.patch ---
--- linux-2.6.14/mm/rmap.c~ 2006-01-03 08:53:32.000000000 -0500
+++ linux-2.6.14/mm/rmap.c 2006-01-03 08:58:19.000000000 -0500
@@ -484,6 +484,13 @@ void page_remove_rmap(struct page *page)
BUG_ON(PageReserved(page));
if (atomic_add_negative(-1, &page->_mapcount)) {
+ if (page_mapcount(page) < 0) {
+ printk (KERN_EMERG "Eeek! page_mapcount(page) went negative! (%d)\n", page->_mapcount);
+ printk (KERN_EMERG " page->flags = %x\n" page->flags);
+ printk (KERN_EMERG " page->count = %x\n" page->_count);
+ printk (KERN_EMERG " page->mapping = %p\n" page->mapping);
+ }
+
BUG_ON(page_mapcount(page) < 0);
/*
* It would be tidy to reset the PageAnon mapping here,
Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/dist/rpms/kernel/FC-4/kernel-2.6.spec,v
retrieving revision 1.1551
retrieving revision 1.1552
diff -u -r1.1551 -r1.1552
--- kernel-2.6.spec 2 Jan 2006 02:02:17 -0000 1.1551
+++ kernel-2.6.spec 3 Jan 2006 13:59:11 -0000 1.1552
@@ -368,6 +368,7 @@
Patch2000: linux-2.6-vm-oomkiller-debugging.patch
Patch2001: linux-2.6-vm-silence-atomic-alloc-failures.patch
Patch2003: linux-2.6-vm-clear-unreclaimable.patch
+Patch2004: linux-2.6-vm-debug.patch
#
@@ -830,6 +831,8 @@
%patch2001 -p1
# prevent OOM kills and page allocation failures under load.
%patch2003 -p1
+# debug-fu
+%patch2004 -p1
#
# Patches 5000 to 6000 are reserved for new drivers that are about to
More information about the fedora-cvs-commits
mailing list