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>
This commit is contained in:
Tong Tiangen 2022-10-24 09:47:24 +00:00 • committed by Palmer Dabbelt
commit d33deda095
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889
2 changed files with 14 additions and 0 deletions