shmem-remove-vma-arg-from-shmem_get_folio_gfp.patch removed from -mm tree
The quilt patch titled
Subject: shmem: remove vma arg from shmem_get_folio_gfp()
has been removed from the -mm tree. Its filename was
shmem-remove-vma-arg-from-shmem_get_folio_gfp.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: Hugh Dickins <[email protected]>
Subject: shmem: remove vma arg from shmem_get_folio_gfp()
Date: Fri, 29 Sep 2023 20:26:53 -0700 (PDT)
The vma is already there in vmf->vma, so no need for a separate arg.
---
mm/shmem.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)
mm/shmem.c renamed from mm/shmem.c~shmem-remove-vma-arg-from-shmem_get_folio_gfp +6 -7
@@ -1921,14 +1921,13 @@ unlock:* vm. If we swap it in we mark it dirty since we also free the swap * entry since a page cannot live in both the swap and page cache. * -* vma, vmf, and fault_type are only supplied by shmem_fault: -* otherwise they are NULL. +* vmf and fault_type are only supplied by shmem_fault: otherwise they are NULL. */ static int shmem_get_folio_gfp (struct inode *inode,pgoff_t index,struct folio **foliop,enum sgp_type sgp,gfp_t gfp, -struct vm_area_struct *vma,struct vm_fault *vmf, -vm_fault_t *fault_type) +struct vm_fault *vmf,vm_fault_t *fault_type) { +struct vm_area_struct *vma = vmf ? vmf->vma :NULL ;struct address_space *mapping = inode->i_mapping;struct shmem_inode_info *info =SHMEM_I (inode);struct shmem_sb_info *sbinfo;
@@ -2141,7 +2140,7 @@ int shmem_get_folio(struct inode *inode, enum sgp_type sgp) {return shmem_get_folio_gfp (inode, index, foliop, sgp, -mapping_gfp_mask (inode->i_mapping),NULL ,NULL ,NULL ); +mapping_gfp_mask (inode->i_mapping),NULL ,NULL ); }/*
@@ -2225,7 +2224,7 @@ static vm_fault_t shmem_fault(struct vm_ } err =shmem_get_folio_gfp (inode, vmf->pgoff, &folio,SGP_CACHE , - gfp, vma, vmf, &ret); + gfp, vmf, &ret);if (err)return vmf_error (err);if (folio)
@@ -4893,7 +4892,7 @@ struct folio *shmem_read_folio_gfp(strucBUG_ON (!shmem_mapping (mapping)); error =shmem_get_folio_gfp (inode, index, &folio,SGP_CACHE , - gfp,NULL ,NULL ,NULL ); + gfp,NULL ,NULL );if (error)return ERR_PTR (error);
_
Patches currently in -mm which might be from [email protected] are
hugetlbfs-drop-shared-numa-mempolicy-pretence.patch kernfs-drop-shared-numa-mempolicy-hooks.patch mempolicy-fix-migrate_pages2-syscall-return-nr_failed.patch mempolicy-trivia-delete-those-ancient-pr_debugs.patch mempolicy-trivia-slightly-more-consistent-naming.patch mempolicy-trivia-use-pgoff_t-in-shared-mempolicy-tree.patch mempolicy-mpol_shared_policy_init-without-pseudo-vma.patch mempolicy-remove-confusing-mpol_mf_lazy-dead-code.patch mm-add-page_rmappable_folio-wrapper.patch mempolicy-alloc_pages_mpol-for-numa-policy-without-vma.patch mempolicy-mmap_lock-is-not-needed-while-migrating-folios.patch mempolicy-migration-attempt-to-match-interleave-nodes.patch