ARC: mm: switch pgtable_t back to struct page *
authorVineet Gupta <vgupta@kernel.org>
Thu, 12 Aug 2021 19:54:43 +0000 (12:54 -0700)
committerVineet Gupta <vgupta@kernel.org>
Thu, 26 Aug 2021 20:42:42 +0000 (13:42 -0700)
commitd9820ff76f95fa26d33e412254a89cd65b23142d
tree4f7fcc648a3b08f5533923b05abbd00c29879b6d
parentf35534a2bcc7fd614a11aa7e3d91a0b1d6c962fb
ARC: mm: switch pgtable_t back to struct page *

So far ARC pgtable_t has not been struct page based to avoid extra
page_address() calls involved. However the differences are down to
noise and get in the way of using generic code, hence this patch.

This also allows us to reuse generic THP depost/withdraw code.

There's some additional consideration for PGDIR_SHIFT in 4K page config.
Now due to page tables being PAGE_SIZE deep only, the address split
can't be really arbitrary.

Tested-by: kernel test robot <lkp@intel.com>
Suggested-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
arch/arc/include/asm/hugepage.h
arch/arc/include/asm/page.h
arch/arc/include/asm/pgalloc.h
arch/arc/include/asm/pgtable-levels.h
arch/arc/mm/init.c
arch/arc/mm/tlb.c