linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] mm/rmap: small cleanup for __folio_remove_rmap()
@ 2025-08-15  8:49 Wei Yang
  2025-08-15  8:49 ` [PATCH 1/3] mm/rmap: not necessary to mask off FOLIO_PAGES_MAPPED Wei Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Wei Yang @ 2025-08-15  8:49 UTC (permalink / raw)
  To: akpm, david, lorenzo.stoakes, riel, Liam.Howlett, vbabka,
	harry.yoo
  Cc: linux-mm, Wei Yang

During code reading, I found some small places where we can improve based on
the knowledge we already have.

For example, since base folio is handled in another branch, we case use
folio_large_nr_pages() to get the number directly.

Hope I don't mess it up.

Wei Yang (3):
  mm/rmap: not necessary to mask off FOLIO_PAGES_MAPPED
  mm/rmap: could be partially_mapped only after no entire map
  mm/rmap: use folio_large_nr_pages() when we are sure it is a large
    folio

 mm/rmap.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2025-08-16 14:03 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15  8:49 [PATCH 0/3] mm/rmap: small cleanup for __folio_remove_rmap() Wei Yang
2025-08-15  8:49 ` [PATCH 1/3] mm/rmap: not necessary to mask off FOLIO_PAGES_MAPPED Wei Yang
2025-08-15  9:38   ` Lorenzo Stoakes
2025-08-16  0:33     ` Wei Yang
2025-08-16  6:29   ` David Hildenbrand
2025-08-15  8:49 ` [PATCH 2/3] mm/rmap: could be partially_mapped only after no entire map Wei Yang
2025-08-15 10:08   ` Lorenzo Stoakes
2025-08-16  6:31     ` David Hildenbrand
2025-08-16  9:06       ` Wei Yang
2025-08-16  9:16         ` David Hildenbrand
2025-08-16 10:05           ` Giorgi Tchankvetadze
2025-08-16 10:32             ` David Hildenbrand
2025-08-16 14:03           ` Wei Yang
2025-08-15  8:49 ` [PATCH 3/3] mm/rmap: use folio_large_nr_pages() when we are sure it is a large folio Wei Yang
2025-08-15 10:04   ` Lorenzo Stoakes
2025-08-16  6:32   ` David Hildenbrand
2025-08-15 10:11 ` [PATCH 0/3] mm/rmap: small cleanup for __folio_remove_rmap() Lorenzo Stoakes
2025-08-16  0:36   ` Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).