Re: [PATCH v12 04/12] KVM: guest_memfd: Add slab-allocated inode cache

From: Ackerley Tng
Date: Thu Oct 09 2025 - 18:17:05 EST


Sean Christopherson <seanjc@xxxxxxxxxx> writes:

> From: Shivank Garg <shivankg@xxxxxxx>
>
> Add a dedicated gmem_inode structure and a slab-allocateda inode cache for

Stray 'a' in slab-allocateda here!

> guest memory backing, similar to how shmem handles inodes.
>
> This adds the necessary allocation/destruction functions and prepares
> for upcoming guest_memfd NUMA policy support changes. Using a dedicated
> structure will also allow for additional cleanups, e.g. to track flags in
> gmem_inode instead of i_private.
>
> Signed-off-by: Shivank Garg <shivankg@xxxxxxx>
> Tested-by: Ashish Kalra <ashish.kalra@xxxxxxx>
> [sean: s/kvm_gmem_inode_info/gmem_inode, name init_once()]
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
>
> [...snip...]
>