mm-new-follow_pfnmap-api.patch removed from -mm tree
The quilt patch titled
Subject: mm: new follow_pfnmap API
has been removed from the -mm tree. Its filename was
mm-new-follow_pfnmap-api.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Peter Xu <[email protected]>
Subject: mm: new follow_pfnmap API
Date: Mon, 26 Aug 2024 16:43:43 -0400
Introduce a pair of APIs to follow pfn mappings to get entry information. It's very similar to what follow_pte() does before, but different in that it recognizes huge pfn mappings.
Signed-off-by Peter Xu <[email protected]>
Cc Alexander Gordeev <[email protected]>
Cc Alex Williamson <[email protected]>
Cc Aneesh Kumar K.V <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Dave Hansen <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Gavin Shan <[email protected]>
Cc Gerald Schaefer <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Niklas Schnelle <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Ryan Roberts <[email protected]>
Cc Sean Christopherson <[email protected]>
Cc Sven Schnelle <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Vasily Gorbik <[email protected]>
Cc Will Deacon <[email protected]>
Cc Zi Yan <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/mm.h | 31 ++++++++ mm/memory.c | 150 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 181 insertions(+)
include/linux/mm.h renamed from include/linux/mm.h~mm-new-follow_pfnmap-api +31 -0
@@ -2373,6 +2373,37 @@ int follow_pte(struct vm_area_struct *vmint generic_access_phys (struct vm_area_struct *vma,unsigned long addr,void *buf,int len,int write); +struct follow_pfnmap_args { +/** +* Inputs: +* @vma: Pointer to @vm_area_struct struct +* @address: the virtual address to walk +*/ +struct vm_area_struct *vma; +unsigned long address; +/** +* Internals: +* +* The caller shouldn't touch any of these. +*/ +spinlock_t *lock; +pte_t *ptep; +/** +* Outputs: +* +* @pfn: the PFN of the address +* @pgprot: the pgprot_t of the mapping +* @writable: whether the mapping is writable +* @special: whether the mapping is a special mapping (real PFN maps) +*/ +unsigned long pfn; +pgprot_t pgprot; +bool writable; +bool special; +}; +int follow_pfnmap_start (struct follow_pfnmap_args *args); +void follow_pfnmap_end (struct follow_pfnmap_args *args); +extern void truncate_pagecache (struct inode *inode,loff_t new);extern void truncate_setsize (struct inode *inode,loff_t newsize);void pagecache_isize_extended (struct inode *inode,loff_t from,loff_t to);
mm/memory.c renamed from mm/memory.c~mm-new-follow_pfnmap-api +150 -0
156 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are