diff options
Diffstat (limited to 'arch/powerpc/mm/gup.c')
-rw-r--r-- | arch/powerpc/mm/gup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/mm/gup.c b/arch/powerpc/mm/gup.c index fec13200868f..b9e1c7ff5f6d 100644 --- a/arch/powerpc/mm/gup.c +++ b/arch/powerpc/mm/gup.c | |||
@@ -22,8 +22,9 @@ static inline void get_huge_page_tail(struct page *page) | |||
22 | * __split_huge_page_refcount() cannot run | 22 | * __split_huge_page_refcount() cannot run |
23 | * from under us. | 23 | * from under us. |
24 | */ | 24 | */ |
25 | VM_BUG_ON(atomic_read(&page->_count) < 0); | 25 | VM_BUG_ON(page_mapcount(page) < 0); |
26 | atomic_inc(&page->_count); | 26 | VM_BUG_ON(atomic_read(&page->_count) != 0); |
27 | atomic_inc(&page->_mapcount); | ||
27 | } | 28 | } |
28 | 29 | ||
29 | /* | 30 | /* |