lkml.org 
[lkml]   [2024]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2] mm: make folio_pte_batch available outside of mm/memory.c
From
On 27.02.24 11:42, Barry Song wrote:
> From: Barry Song <v-songbaohua@oppo.com>
>
> madvise, mprotect and some others might need folio_pte_batch to check if
> a range of PTEs are completely mapped to a large folio with contiguous
> physical addresses. Let's make it available in mm/internal.h.
>

Would have added

"
While at it, add proper kernel doc and sanity-check more input
parameters using two additional VM_WARN_ON_FOLIO().
"

Acked-by: David Hildenbrand <david@redhat.com>


--
Cheers,

David / dhildenb


\
 
 \ /
  Last update: 2024-05-27 15:24    [W:0.046 / U:1.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site