From: Qi Yong Date: Tue, 5 Feb 2008 06:29:27 +0000 (-0800) Subject: set_page_refcounted() VM_BUG_ON fix X-Git-Tag: v2.6.25-rc1~929 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ae1276b9349a2fd9c3afb4651e25a77ac03299d9;p=karo-tx-linux.git set_page_refcounted() VM_BUG_ON fix 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 Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/internal.h b/mm/internal.h index 1e34d2462a48..5a9a6200e034 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); }