Merge tag 'char-misc-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregk...
[linux-2.6-microblaze.git] / arch / powerpc / mm / mmu_context_book3s64.c
index 510f103..f720c5c 100644 (file)
@@ -164,21 +164,6 @@ static void destroy_contexts(mm_context_t *ctx)
        }
 }
 
-static void pte_frag_destroy(void *pte_frag)
-{
-       int count;
-       struct page *page;
-
-       page = virt_to_page(pte_frag);
-       /* drop all the pending references */
-       count = ((unsigned long)pte_frag & ~PAGE_MASK) >> PTE_FRAG_SIZE_SHIFT;
-       /* We allow PTE_FRAG_NR fragments from a PTE page */
-       if (atomic_sub_and_test(PTE_FRAG_NR - count, &page->pt_frag_refcount)) {
-               pgtable_page_dtor(page);
-               __free_page(page);
-       }
-}
-
 static void pmd_frag_destroy(void *pmd_frag)
 {
        int count;