]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: guest_memfd: Remove redundant kvm_gmem_getattr implementation
authorShivank Garg <shivankg@amd.com>
Mon, 2 Jun 2025 17:23:18 +0000 (17:23 +0000)
committerSean Christopherson <seanjc@google.com>
Wed, 25 Jun 2025 20:42:33 +0000 (13:42 -0700)
commit87d4fbf4a387f207d6906806ef6bf5c8eb289bd7
treefa1efea343ade1670cac63a4a2dc61b356991582
parentaa006b2e515959e3575acebca6292f060da94c12
KVM: guest_memfd: Remove redundant kvm_gmem_getattr implementation

Remove the redundant kvm_gmem_getattr() implementation that simply calls
generic_fillattr() without any special handling. The VFS layer
(vfs_getattr_nosec()) will call generic_fillattr() by default when no
custom getattr operation is provided in the inode_operations structure.

This is a cleanup with no functional change.

Signed-off-by: Shivank Garg <shivankg@amd.com>
Reviewed-By: Ackerley Tng <ackerleytng@google.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Link: https://lore.kernel.org/r/20250602172317.10601-1-shivankg@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
virt/kvm/guest_memfd.c