Does PT_RECLAIM need to be configurable by the user? Why not always try to free the page tables if the arch supports it? diff --git a/mm/Kconfig b/mm/Kconfig index 2761098dbc1a..99383c93db33 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -1309,16 +1309,9 @@ config ARCH_SUPPORTS_PT_RECLAIM def_bool n config PT_RECLAIM - bool "reclaim empty user page table pages" - default y + def_bool y depends on ARCH_SUPPORTS_PT_RECLAIM && MMU && SMP select MMU_GATHER_RCU_TABLE_FREE - help - Try to reclaim empty user page table pages in paths other than munmap - and exit_mmap path. - - Note: now only empty user PTE page table pages will be reclaimed. - source "mm/damon/Kconfig"