mbox series

[RFC,0/2] minor cleanup of usage of flush_dcache_folio()

Message ID 20230216160528.2146188-1-fengwei.yin@intel.com (mailing list archive)
Headers show
Series minor cleanup of usage of flush_dcache_folio() | expand

Message

Yin Fengwei Feb. 16, 2023, 4:05 p.m. UTC
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(-)