Re: [RFC PATCH v4 03/16] mm: Provide mm_struct and address to huge_ptep_get()

From
Oscar Salvador <osalvador@suse.de>
Date
2024-05-28 04:12:32
Also in
linux-mm, lkml
Reply to
Christophe Leroy, 2024-05-27
On Mon, May 27, 2024 at 03:30:01PM +0200, Christophe Leroy wrote:
On powerpc 8xx huge_ptep_get() will need to know whether the given
ptep is a PTE entry or a PMD entry. This cannot be known with the
PMD entry itself because there is no easy way to know it from the
content of the entry.

So huge_ptep_get() will need to know either the size of the page
or get the pmd.

In order to be consistent with huge_ptep_get_and_clear(), give
mm and address to huge_ptep_get().

Signed-off-by: Christophe Leroy <redacted>
Reviewed-by: Oscar Salvador <osalvador@suse.de>

 

-- 
Oscar Salvador
SUSE Labs
Thread (37 messages) 37 messages, 3 authors, last reply 2024-05-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help