Re: [PATCH v2 4/5] guest_memfd: add support for userfaultfd minor mode
From: David Hildenbrand (Red Hat)
Date: Thu Nov 27 2025 - 06:27:23 EST
On 11/27/25 11:36, Mike Rapoport wrote:
On Wed, Nov 26, 2025 at 04:49:31PM +0000, Nikita Kalyazin wrote:
On 25/11/2025 18:38, Mike Rapoport wrote:
From: "Mike Rapoport (Microsoft)" <rppt@xxxxxxxxxx>
+#ifdef CONFIG_USERFAULTFD
+static struct folio *kvm_gmem_get_folio(struct inode *inode, pgoff_t pgoff)
We have to name it differently, otherwise it clashes with the existing one
in this file.
It's all David's fault! ;-P
As usual :)
How about kvm_gmem_get_prepared_folio() ?
Or maybe just spell out that it is for vm_ops
kvm_gmem_vm_ops_get_folio()
--
Cheers
David