userfualtfd-replace-lru_cache-functions-with-folio_add-functions.patch removed from -mm tree
The quilt patch titled
Subject: userfaultfd: replace lru_cache functions with folio_add functions
has been removed from the -mm tree. Its filename was
userfualtfd-replace-lru_cache-functions-with-folio_add-functions.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: "Vishal Moola (Oracle)" <[email protected]>
Subject: userfaultfd: replace lru_cache functions with folio_add functions
Date: Tue, 1 Nov 2022 10:53:24 -0700
Replaces lru_cache_add() and lru_cache_add_inactive_or_unevictable() with folio_add_lru() and folio_add_lru_vma(). This is in preparation for the removal of lru_cache_add().
---
mm/userfaultfd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
mm/userfaultfd.c renamed from mm/userfaultfd.c~userfualtfd-replace-lru_cache-functions-with-folio_add-functions +4 -2
@@ -66,6 +66,7 @@ int mfill_atomic_install_pte(struct mm_sbool vm_shared = dst_vma->vm_flags &VM_SHARED ;bool page_in_cache =page_mapping (page);spinlock_t *ptl; +struct folio *folio;struct inode *inode;pgoff_t offset, max_off;
@@ -113,14 +114,15 @@ int mfill_atomic_install_pte(struct mm_sif (!pte_none_mostly (*dst_pte)) goto out_unlock; + folio =page_folio (page);if (page_in_cache) {/* Usually, cache pages are already added to LRU */ if (newly_allocated) -lru_cache_add (page); +folio_add_lru (folio);page_add_file_rmap (page, dst_vma, false); }else {page_add_new_anon_rmap (page, dst_vma, dst_addr); -lru_cache_add_inactive_or_unevictable (page, dst_vma); +folio_add_lru_vma (folio, dst_vma); }/*
_
Patches currently in -mm which might be from [email protected] are