mm-hugetlb-declare-hugetlbfs_pagecache_present-non-static.patch removed from -mm tree
The quilt patch titled
Subject: mm/hugetlb: declare hugetlbfs_pagecache_present() non-static
has been removed from the -mm tree. Its filename was
mm-hugetlb-declare-hugetlbfs_pagecache_present-non-static.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: Peter Xu <[email protected]>
Subject: mm/hugetlb: declare hugetlbfs_pagecache_present() non-static
Date: Wed, 27 Mar 2024 11:23:21 -0400
It will be used outside hugetlb.c soon.
---
include/linux/hugetlb.h | 9 +++++++++ mm/hugetlb.c | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-)
include/linux/hugetlb.h renamed from include/linux/hugetlb.h~mm-hugetlb-declare-hugetlbfs_pagecache_present-non-static +9 -0
@@ -174,6 +174,9 @@ u32 hugetlb_fault_mutex_hash(struct addrpte_t *huge_pmd_share (struct mm_struct *mm,struct vm_area_struct *vma,unsigned long addr,pud_t *pud); +bool hugetlbfs_pagecache_present (struct hstate *h, +struct vm_area_struct *vma, +unsigned long address);struct address_space *hugetlb_page_mapping_lock_write (struct page *hpage);
@@ -1228,6 +1231,12 @@ static inline void hugetlb_register_nodestatic inline void hugetlb_unregister_node (struct node *node) { } + +static inline bool hugetlbfs_pagecache_present ( +struct hstate *h,struct vm_area_struct *vma,unsigned long address) +{ +return false; +}#endif /* CONFIG_HUGETLB_PAGE */ static inline spinlock_t *huge_pte_lock(struct hstate *h,
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-declare-hugetlbfs_pagecache_present-non-static +2 -2
@@ -6113,8 +6113,8 @@ out_release_old:/* * Return whether there is a pagecache page to back given address within VMA. */ -static bool hugetlbfs_pagecache_present (struct hstate *h, -struct vm_area_struct *vma,unsigned long address) +bool hugetlbfs_pagecache_present (struct hstate *h, +struct vm_area_struct *vma,unsigned long address) {struct address_space *mapping = vma->vm_file->f_mapping;pgoff_t idx =linear_page_index (vma, address);
_
Patches currently in -mm which might be from [email protected] are
mm-userfaultfd-reset-ptes-when-close-for-wr-protected-ones.patch mm-hugetlb-assert-hugetlb_lock-in-__hugetlb_cgroup_commit_charge.patch mm-page_table_check-support-userfault-wr-protect-entries.patch