From: Christoph Lameter Both slab defrag and the large blocksize patches need to ability to take refcounts on compound pages. May be useful in other places as well. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN include/linux/mm.h~vm-allow-get_page_unless_zero-on-compound-pages include/linux/mm.h --- a/include/linux/mm.h~vm-allow-get_page_unless_zero-on-compound-pages +++ a/include/linux/mm.h @@ -227,7 +227,7 @@ static inline int put_page_testzero(stru */ static inline int get_page_unless_zero(struct page *page) { - VM_BUG_ON(PageCompound(page)); + VM_BUG_ON(PageTail(page)); return atomic_inc_not_zero(&page->_count); } _