]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/rmap: not necessary to mask off FOLIO_PAGES_MAPPED
authorWei Yang <richard.weiyang@gmail.com>
Sun, 17 Aug 2025 03:26:46 +0000 (03:26 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 18 Aug 2025 05:09:06 +0000 (22:09 -0700)
commite62a157dd78cebd020d9a9ad3bb2017b74ac38e9
treea074720ec3a104c70b03c9470128e900b7cfb1cc
parent34e9a2511d821409876bcbed4ded78622650e766
mm/rmap: not necessary to mask off FOLIO_PAGES_MAPPED

At this point, we are in an if branch conditional on (nr <
ENTIRELY_MAPPED), and FOLIO_PAGES_MAPPED is equal to (ENTIRELY_MAPPED -
1).  This means the upper bits are already cleared.

It is not necessary to mask it off.

Link: https://lkml.kernel.org/r/20250817032647.29147-2-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Rik van Riel <riel@surriel.com>
Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/rmap.c