Re: [PATCH v2 1/6] mm: pgtable: make generic tlb_remove_table() use struct ptdesc
Kevin Brodsky <[email protected]>
| Newsgroups | org.kernel.vger.linux-hexagon,dev.linux.lists.loongarch,org.infradead.lists.linux-riscv,org.infradead.lists.linux-um,org.kernel.vger.linux-csky,org.kernel.vger.linux-kernel,org.kernel.vger.linux-m68k,org.kernel.vger.linux-mips,org.kernel.vger.linux-openrisc,org.kernel.vger.linux-sh,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
On 25/02/2025 04:45, Qi Zheng wrote: > Now only arm will call tlb_remove_ptdesc()/tlb_remove_table() when > CONFIG_MMU_GATHER_TABLE_FREE is disabled. In this case, the type of the > table parameter is actually struct ptdesc * instead of struct page *. > > Since struct ptdesc still overlaps with struct page and has not been > separated from it, forcing the table parameter to struct page * will not > cause any problems at this time. But this is definitely incorrect and > needs to be fixed. So just like the generic __tlb_remove_table(), let > generic tlb_remove_table() use struct ptdesc by default when > CONFIG_MMU_GATHER_TABLE_FREE is disabled. > > Signed-off-by: Qi Zheng <[email protected]> Reviewed-by: Kevin Brodsky <[email protected]>