X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Finternal.h;h=a3110c02aea7d4b6f8edbd06e5a06477d3c2fc8b;hb=75ecb1a4d148b274aa9acd1d6ccaca0a4654784e;hp=d527b80b292fc7d96308ab91f459dbe7bae874c8;hpb=12e36b2f41b6cbc67386fcb9c59c32a3e2033905;p=linux-2.6 diff --git a/mm/internal.h b/mm/internal.h index d527b80b29..a3110c02ae 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) && page_private(page) != (unsigned long)page); + VM_BUG_ON(PageCompound(page) && PageTail(page)); VM_BUG_ON(atomic_read(&page->_count)); set_page_count(page, 1); }