Skip to content

mm/rmap: small cleanup for __folio_remove_rmap()

Wei Yang linux-mm 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v13 patches 14 repliesSuperseded

Changes in v2 from the cover letter

* remove patch 2
* adjust patch 1 changelog
* adjust cover letter description

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/rmap: not necessary to mask off FOLIO_PAGES_MAPPEDmm/rmap.c+1 -10 replies
2/2mm/rmap: use folio_large_nr_pages() when we are sure it is a large foliomm/rmap.c+1 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLorenzo StoakesDavid Hildenbrand
1/2R-b A-b
2/2R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Patch v2 0/2] mm/rmap: small cleanup for __folio_remove_rmap()

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(-)
Signature · 1 line
2.34.1