fs-hugetlb-simplify-remove_inode_hugepages-return-type.patch removed from -mm tree
The quilt patch titled
Subject: fs: hugetlb: simplify remove_inode_hugepages() return type
has been removed from the -mm tree. Its filename was
fs-hugetlb-simplify-remove_inode_hugepages-return-type.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: Jiaqi Yan <[email protected]>
Subject: fs: hugetlb: simplify remove_inode_hugepages() return type
Date: Wed, 4 Feb 2026 21:47:41 +0000
When remove_inode_hugepages() was introduced in commit c86272287bc6 ("hugetlb: create remove_inode_single_folio to remove single file folio") it used to return a boolean to indicate if it bailed out due to race with page faults. However, since the race is already solved by [1], remove_inode_hugepages() doesn't have any path to return false anymore.
Simplify remove_inode_hugepages() return type to void, remove the unnecessary ret variable, and adjust the call site in remove_inode_hugepages(). No functional change in this commit.
---
fs/hugetlbfs/inode.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-)
fs/hugetlbfs/inode.c renamed from fs/hugetlbfs/inode.c~fs-hugetlb-simplify-remove_inode_hugepages-return-type +6 -12
@@ -513,15 +513,11 @@ hugetlb_vmdelete_list(struct rb_root_cac/* * Called with hugetlb fault mutex held. -* Returns true if page was actually removed, false otherwise. */ -static bool remove_inode_single_folio (struct hstate *h,struct inode *inode, -struct address_space *mapping, -struct folio *folio,pgoff_t index, -bool truncate_op) +static void remove_inode_single_folio (struct hstate *h,struct inode *inode, +struct address_space *mapping,struct folio *folio, +pgoff_t index,bool truncate_op) { -bool ret = false; -/* * If folio is mapped, it was faulted in after being * unmapped in caller or hugetlb_vmdelete_list() skips
@@ -543,7 +539,6 @@ static bool remove_inode_single_folio(st*/ VM_BUG_ON_FOLIO (folio_test_hugetlb_restore_reserve (folio), folio);hugetlb_delete_from_page_cache (folio); - ret = true;if (!truncate_op) {if (unlikely (hugetlb_unreserve_pages (inode, index, index +1 ,1 )))
@@ -551,7 +546,6 @@ static bool remove_inode_single_folio(st }folio_unlock (folio); -return ret; }/*
@@ -599,9 +593,9 @@ static void remove_inode_hugepages(struc/* * Remove folio that was part of folio_batch. */ -if (remove_inode_single_folio (h, inode, mapping, folio, - index, truncate_op)) - freed++; +remove_inode_single_folio (h, inode, mapping, folio, + index, truncate_op); + freed++;mutex_unlock (&hugetlb_fault_mutex_table[hash]); }
_
Patches currently in -mm which might be from [email protected] are