When tried to review the usage of flush_dcache_folio(), noticed several unnecessary call to flush_dcache_folio(). Patch1 removes them. Patch2 adds zero_user_folio_segment() which has same function as zero_user_segment() but with folio as parameter. And use flush_dcache_folio() to flush cache instead of loop call flush_dcache_page(). Test: Boot and run firefox/email/editor with Qemu x86_64 system. The base is next-20230214. Yin Fengwei (2): mm: remove duplicated flush_dcache_folio() mm: add zero_user_folio_segments() fs/libfs.c | 1 - include/linux/highmem.h | 26 +++++++++++++++++--- mm/highmem.c | 53 +++++++++++++++++++++++++++++++++++++++++ mm/shmem.c | 7 +----- 4 files changed, 77 insertions(+), 10 deletions(-) -- 2.30.2