Skip to contentSkip to conversation

set_page_refcounted VM_BUG_ON fix

PATCH New Qi Yong 1 participant 1 message Dec 14, 2007

Subsystems (3)
lore
Share & tools
lore

Qi Yong

author
#0 lore raw

PATCH 1/1 set_page_refcounted VM_BUG_ON fix

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().

---

fs/fs-writeback.c +0 -0
mm/internal.h +1 -1
index 953f941..79797db 100644
@@ -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);
 }
Signature · 1 line
Qi Yong