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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux