linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] mm: improve clear and copy user folio
@ 2024-06-18  9:12 Kefeng Wang
  2024-06-18  9:12 ` [PATCH v2 1/4] mm: memory: convert clear_huge_page() to folio_zero_user() Kefeng Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kefeng Wang @ 2024-06-18  9:12 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Muchun Song, Matthew Wilcox (Oracle),
	David Hildenbrand, linux-mm, Huang Ying, Kefeng Wang

The most are some folio conversions, another improvement is that move
address alignment into the caller as it is only needed if we don't know
which address will be accessed when clear/copy user folio.

v2:
- rename clear_large_folio to folio_zero_user and move alignment out,
  per Matthew, but still use addr_hint name since it is for cache hint,
  or maybe user_addr_hint ?
- improve copy_user_large_folio() and rename pages_per_huge_page
- add ACK

Kefeng Wang (4):
  mm: memory: convert clear_huge_page() to folio_zero_user()
  mm: memory: use folio in struct copy_subpage_arg
  mm: memory: improve copy_user_large_folio()
  mm: memory: rename pages_per_huge_page to nr_pages

 fs/hugetlbfs/inode.c |  2 +-
 include/linux/mm.h   |  4 +--
 mm/huge_memory.c     |  4 +--
 mm/hugetlb.c         | 21 +++++-------
 mm/memory.c          | 81 +++++++++++++++++++++-----------------------
 5 files changed, 51 insertions(+), 61 deletions(-)

-- 
2.27.0



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

end of thread, other threads:[~2024-06-18  9:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-18  9:12 [PATCH v2 0/4] mm: improve clear and copy user folio Kefeng Wang
2024-06-18  9:12 ` [PATCH v2 1/4] mm: memory: convert clear_huge_page() to folio_zero_user() Kefeng Wang
2024-06-18  9:12 ` [PATCH v2 2/4] mm: memory: use folio in struct copy_subpage_arg Kefeng Wang
2024-06-18  9:12 ` [PATCH v2 3/4] mm: memory: improve copy_user_large_folio() Kefeng Wang
2024-06-18  9:12 ` [PATCH v2 4/4] mm: memory: rename pages_per_huge_page to nr_pages Kefeng Wang

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