From: Mike Rapoport <r...@linux.ibm.com> It will be used by the upcoming secret memory implementation.
Signed-off-by: Mike Rapoport <r...@linux.ibm.com> Reviewed-by: David Hildenbrand <da...@redhat.com> Acked-by: James Bottomley <james.bottom...@hansenpartnership.com> Cc: Alexander Viro <v...@zeniv.linux.org.uk> Cc: Andy Lutomirski <l...@kernel.org> Cc: Arnd Bergmann <a...@arndb.de> Cc: Borislav Petkov <b...@alien8.de> Cc: Catalin Marinas <catalin.mari...@arm.com> Cc: Christopher Lameter <c...@linux.com> Cc: Dan Williams <dan.j.willi...@intel.com> Cc: Dave Hansen <dave.han...@linux.intel.com> Cc: David Hildenbrand <da...@redhat.com> Cc: Elena Reshetova <elena.reshet...@intel.com> Cc: Hagen Paul Pfeifer <ha...@jauu.net> Cc: "H. Peter Anvin" <h...@zytor.com> Cc: Ingo Molnar <mi...@redhat.com> Cc: James Bottomley <j...@linux.ibm.com> Cc: "Kirill A. Shutemov" <kir...@shutemov.name> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Matthew Wilcox <wi...@infradead.org> Cc: Michael Kerrisk <mtk.manpa...@gmail.com> Cc: Palmer Dabbelt <pal...@dabbelt.com> Cc: Palmer Dabbelt <palmerdabb...@google.com> Cc: Paul Walmsley <paul.walms...@sifive.com> Cc: Peter Zijlstra <pet...@infradead.org> Cc: Rick Edgecombe <rick.p.edgeco...@intel.com> Cc: Roman Gushchin <g...@fb.com> Cc: Shakeel Butt <shake...@google.com> Cc: Shuah Khan <sh...@kernel.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Tycho Andersen <ty...@tycho.ws> Cc: Will Deacon <w...@kernel.org> --- mm/internal.h | 3 +++ mm/mmap.c | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 54bd0dc2c23c..46eb82eaa195 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -373,6 +373,9 @@ static inline void munlock_vma_pages_all(struct vm_area_struct *vma) extern void mlock_vma_page(struct page *page); extern unsigned int munlock_vma_page(struct page *page); +extern int mlock_future_check(struct mm_struct *mm, unsigned long flags, + unsigned long len); + /* * Clear the page's PageMlocked(). This can be useful in a situation where * we want to unconditionally remove a page from the pagecache -- e.g., diff --git a/mm/mmap.c b/mm/mmap.c index 0584e540246e..81f5595a8490 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1352,9 +1352,8 @@ static inline unsigned long round_hint_to_min(unsigned long hint) return hint; } -static inline int mlock_future_check(struct mm_struct *mm, - unsigned long flags, - unsigned long len) +int mlock_future_check(struct mm_struct *mm, unsigned long flags, + unsigned long len) { unsigned long locked, lock_limit; -- 2.28.0 _______________________________________________ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org