mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] set_page_refcounted VM_BUG_ON fix
@ 2007-12-14  3:36 Qi Yong
  0 siblings, 0 replies; only message in thread
From: Qi Yong @ 2007-12-14  3:36 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-14  3:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-14  3:36 [patch] set_page_refcounted VM_BUG_ON fix Qi Yong

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®