diff options
Diffstat (limited to 'mm/internal.h')
-rw-r--r-- | mm/internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/internal.h b/mm/internal.h index 684f7aa9692a..a85a3ab1f7ef 100644 --- a/mm/internal.h +++ b/mm/internal.h | |||
@@ -51,7 +51,8 @@ static inline void __get_page_tail_foll(struct page *page, | |||
51 | VM_BUG_ON(page_mapcount(page) < 0); | 51 | VM_BUG_ON(page_mapcount(page) < 0); |
52 | if (get_page_head) | 52 | if (get_page_head) |
53 | atomic_inc(&page->first_page->_count); | 53 | atomic_inc(&page->first_page->_count); |
54 | atomic_inc(&page->_mapcount); | 54 | if (compound_tail_refcounted(page->first_page)) |
55 | atomic_inc(&page->_mapcount); | ||
55 | } | 56 | } |
56 | 57 | ||
57 | /* | 58 | /* |