Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'kvm-x86-gmem-7.1' of https://github.com/kvm-x86/linux into HEAD

KVM guest_memfd changes for 7.1

Don't mark guest_memfd folios as accessed, as guest_memfd doesn't support
reclaim, the memory is unevictable, and there is no storage to write back to.

+2 -3
+2 -3
virt/kvm/guest_memfd.c
··· 126 126 * Fast-path: See if folio is already present in mapping to avoid 127 127 * policy_lookup. 128 128 */ 129 - folio = __filemap_get_folio(inode->i_mapping, index, 130 - FGP_LOCK | FGP_ACCESSED, 0); 129 + folio = filemap_lock_folio(inode->i_mapping, index); 131 130 if (!IS_ERR(folio)) 132 131 return folio; 133 132 134 133 policy = mpol_shared_policy_lookup(&GMEM_I(inode)->policy, index); 135 134 folio = __filemap_get_folio_mpol(inode->i_mapping, index, 136 - FGP_LOCK | FGP_ACCESSED | FGP_CREAT, 135 + FGP_LOCK | FGP_CREAT, 137 136 mapping_gfp_mask(inode->i_mapping), policy); 138 137 mpol_cond_put(policy); 139 138