From: Wei Yang <richard.weiyang@gmail.com>
To: akpm@linux-foundation.org, david@redhat.com,
lorenzo.stoakes@oracle.com, riel@surriel.com,
Liam.Howlett@oracle.com, vbabka@suse.cz, harry.yoo@oracle.com
Cc: linux-mm@kvack.org, Wei Yang <richard.weiyang@gmail.com>
Subject: [Patch v2 0/2] mm/rmap: small cleanup for __folio_remove_rmap()
Date: Sun, 17 Aug 2025 03:26:45 +0000 [thread overview]
Message-ID: <20250817032647.29147-1-richard.weiyang@gmail.com> (raw)
During code reading, I found some small places where we can improve based on
the knowledge we already have.
Patch 1 remove a mask of on nr, since we are in an if branch conditional which
implies the upper bits are already clear.
Patch 2 use folio_large_nr_pages() to get the nr since we know this is a large
folio.
v2:
* remove patch 2
* adjust patch 1 changelog
* adjust cover letter description
Wei Yang (2):
mm/rmap: not necessary to mask off FOLIO_PAGES_MAPPED
mm/rmap: use folio_large_nr_pages() when we are sure it is a large
folio
mm/rmap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.34.1
next reply other threads:[~2025-08-17 3:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-17 3:26 Wei Yang [this message]
2025-08-17 3:26 ` [Patch v2 1/2] mm/rmap: not necessary to mask off FOLIO_PAGES_MAPPED Wei Yang
2025-08-17 3:26 ` [Patch v2 2/2] mm/rmap: use folio_large_nr_pages() when we are sure it is a large folio Wei Yang
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=20250817032647.29147-1-richard.weiyang@gmail.com \
--to=richard.weiyang@gmail.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=harry.yoo@oracle.com \
--cc=linux-mm@kvack.org \
--cc=lorenzo.stoakes@oracle.com \
--cc=riel@surriel.com \
--cc=vbabka@suse.cz \
/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