Kernel.org Bugzilla – Attachment 209201 Details for
Bug 114591
xfsdump failing with kernel issues inside vm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Test Patch
0001-Test-to-Verify-WARN_ON-is-being-called-to-page-count.patch (text/plain), 772 bytes, created by
nickkrause
on 2016-03-15 02:47:21 UTC
(
hide
)
Description:
Test Patch
Filename:
MIME Type:
Creator:
nickkrause
Created:
2016-03-15 02:47:21 UTC
Size:
772 bytes
patch
obsolete
>From 43df0e1227e9b0efc7ce44cd42a3760e7d39c40d Mon Sep 17 00:00:00 2001 >From: Nicholas Krause <xerofoify@gmail.com> >Date: Mon, 14 Mar 2016 22:44:15 -0400 >Subject: [PATCH] Test to Verify WARN_ON is being called to page count being > zero > >Signed-off-by: Nicholas Krause <xerofoify@gmail.com> >--- > fs/xfs/xfs_buf.c | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c >index 435c7de..c1065c0 100644 >--- a/fs/xfs/xfs_buf.c >+++ b/fs/xfs/xfs_buf.c >@@ -270,6 +270,7 @@ xfs_buf_free( > for (i = 0; i < bp->b_page_count; i++) { > struct page *page = bp->b_pages[i]; > >+ printk_ratelimited(KERN_CRIT "This page has a ref count of %d\n", atomic_read (&page->_count)); > __free_page(page); > } > } else if (bp->b_flags & _XBF_KMEM) >-- >2.5.0 >
From 43df0e1227e9b0efc7ce44cd42a3760e7d39c40d Mon Sep 17 00:00:00 2001 From: Nicholas Krause <xerofoify@gmail.com> Date: Mon, 14 Mar 2016 22:44:15 -0400 Subject: [PATCH] Test to Verify WARN_ON is being called to page count being zero Signed-off-by: Nicholas Krause <xerofoify@gmail.com> --- fs/xfs/xfs_buf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 435c7de..c1065c0 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -270,6 +270,7 @@ xfs_buf_free( for (i = 0; i < bp->b_page_count; i++) { struct page *page = bp->b_pages[i]; + printk_ratelimited(KERN_CRIT "This page has a ref count of %d\n", atomic_read (&page->_count)); __free_page(page); } } else if (bp->b_flags & _XBF_KMEM) -- 2.5.0
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 114591
: 209201 |
209481
|
209501
|
210291
|
210581
|
210781
|
210921
|
211331
|
211341