thp: share get_huge_page_tail()
[deliverable/linux.git] / arch / s390 / mm / gup.c
index da33a0281d9dbccc3444a2305b6a3ff4bff9d39f..65cb06e2af4eaa0a7b18b2e3b0f5b4b1af8be9d8 100644 (file)
@@ -48,17 +48,6 @@ static inline int gup_pte_range(pmd_t *pmdp, pmd_t pmd, unsigned long addr,
        return 1;
 }
 
-static inline void get_huge_page_tail(struct page *page)
-{
-       /*
-        * __split_huge_page_refcount() cannot run
-        * from under us.
-        */
-       VM_BUG_ON(page_mapcount(page) < 0);
-       VM_BUG_ON(atomic_read(&page->_count) != 0);
-       atomic_inc(&page->_mapcount);
-}
-
 static inline int gup_huge_pmd(pmd_t *pmdp, pmd_t pmd, unsigned long addr,
                unsigned long end, int write, struct page **pages, int *nr)
 {
This page took 0.025643 seconds and 5 git commands to generate.