mbox series

[v2,0/4] mm: improve clear and copy user folio

Message ID 20240618091242.2140164-1-wangkefeng.wang@huawei.com (mailing list archive)
Headers show
Series mm: improve clear and copy user folio | expand

Message

Kefeng Wang June 18, 2024, 9:12 a.m. UTC
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(-)