linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] minor cleanup of usage of flush_dcache_folio()
@ 2023-02-16 16:05 Yin Fengwei
  2023-02-16 16:05 ` [RFC PATCH 1/2] mm: remove duplicated flush_dcache_folio() Yin Fengwei
  2023-02-16 16:05 ` [RFC PATCH 2/2] mm: add zero_user_folio_segments() Yin Fengwei
  0 siblings, 2 replies; 9+ messages in thread
From: Yin Fengwei @ 2023-02-16 16:05 UTC (permalink / raw)
  To: willy, linux-mm; +Cc: fengwei.yin

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-02-27  6:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-16 16:05 [RFC PATCH 0/2] minor cleanup of usage of flush_dcache_folio() Yin Fengwei
2023-02-16 16:05 ` [RFC PATCH 1/2] mm: remove duplicated flush_dcache_folio() Yin Fengwei
2023-02-27  5:46   ` Ira Weiny
2023-02-27  6:14     ` Yin, Fengwei
2023-02-16 16:05 ` [RFC PATCH 2/2] mm: add zero_user_folio_segments() Yin Fengwei
2023-02-16 19:19   ` Matthew Wilcox
2023-02-17  2:21     ` Yin, Fengwei
2023-02-27  5:31   ` Ira Weiny
2023-02-27  5:44     ` Yin, Fengwei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox