Skip to content

Commit ae1276b

Browse files
Qi YongLinus Torvalds
authored andcommitted
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 <qiyong@fc-cn.com> Cc: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 920c7a5 commit ae1276b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static inline void set_page_count(struct page *page, int v)
2424
*/
2525
static inline void set_page_refcounted(struct page *page)
2626
{
27-
VM_BUG_ON(PageCompound(page) && PageTail(page));
27+
VM_BUG_ON(PageTail(page));
2828
VM_BUG_ON(atomic_read(&page->_count));
2929
set_page_count(page, 1);
3030
}

0 commit comments

Comments
 (0)