riscv/mm: hugepage's PG_dcache_clean flag is only set in head page
authorTong Tiangen <tongtiangen@huawei.com>
Mon, 24 Oct 2022 09:47:24 +0000 (09:47 +0000)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 2 Dec 2022 19:25:49 +0000 (11:25 -0800)
commitd33deda095d3637d218e7eed441633b2a01e1413
tree28491d2d24d33666d395360fd78426d176513906
parent6925ba3d9b8ccf1989b4cf13d6f0d7e341899481
riscv/mm: hugepage's PG_dcache_clean flag is only set in head page

HugeTLB pages are always fully mapped, so only setting head page's
PG_dcache_clean flag is enough.

Signed-off-by: Tong Tiangen <tongtiangen@huawei.com>
Link: https://lore.kernel.org/lkml/20220331065640.5777-2-songmuchun@bytedance.com/
Link: https://lore.kernel.org/r/20221024094725.3054311-2-tongtiangen@huawei.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/cacheflush.h
arch/riscv/mm/cacheflush.c