From: Qi Yong <qiyong@fc-cn.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: [patch] set_page_refcounted VM_BUG_ON fix
Date: Fri, 14 Dec 2007 11:36:10 +0800 [thread overview]
Message-ID: <200712141136.10481.qiyong@fc-cn.com> (raw)
Hello,
The current PageTail semantic is that a PageTail page is first a PageCompound page.
So remove the redundant PageCompound test in set_page_refcounted().
Signed-off-by: Qi Yong <qiyong@fc-cn.com>
---
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
diff --git a/mm/internal.h b/mm/internal.h
index 953f941..79797db 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -24,7 +24,7 @@ static inline void set_page_count(struct page *page, int v)
*/
static inline void set_page_refcounted(struct page *page)
{
- VM_BUG_ON(PageCompound(page) && PageTail(page));
+ VM_BUG_ON(PageTail(page));
VM_BUG_ON(atomic_read(&page->_count));
set_page_count(page, 1);
}
--
Qi Yong
reply other threads:[~2007-12-14 3:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200712141136.10481.qiyong@fc-cn.com \
--to=qiyong@fc-cn.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®