linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Kefeng Wang <wangkefeng.wang@huawei.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Muchun Song <muchun.song@linux.dev>,
	"Matthew Wilcox (Oracle)" <willy@infradead.org>,
	David Hildenbrand <david@redhat.com>, <linux-mm@kvack.org>,
	Huang Ying <ying.huang@intel.com>,
	Kefeng Wang <wangkefeng.wang@huawei.com>
Subject: [PATCH v2 0/4] mm: improve clear and copy user folio
Date: Tue, 18 Jun 2024 17:12:38 +0800	[thread overview]
Message-ID: <20240618091242.2140164-1-wangkefeng.wang@huawei.com> (raw)

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



             reply	other threads:[~2024-06-18  9:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-18  9:12 Kefeng Wang [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240618091242.2140164-1-wangkefeng.wang@huawei.com \
    --to=wangkefeng.wang@huawei.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@redhat.com \
    --cc=linux-mm@kvack.org \
    --cc=muchun.song@linux.dev \
    --cc=willy@infradead.org \
    --cc=ying.huang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox