Skip to contentSkip to conversation

ocfs2-speed-up-chain-list-searching.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Apr 26, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: ocfs2: speed up chain-list searching
has been removed from the -mm tree. Its filename was
ocfs2-speed-up-chain-list-searching.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Heming Zhao <[email protected]>
Subject: ocfs2: speed up chain-list searching
Date: Thu, 28 Mar 2024 20:52:02 +0800

Add short-circuit code to speed up searching

---

 fs/ocfs2/suballoc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/suballoc.c renamed from fs/ocfs2/suballoc.c~ocfs2-speed-up-chain-list-searching +1 -1
@@ -2006,7 +2006,7 @@ static int ocfs2_claim_suballoc_bits(str
 	for (i = 0; i < le16_to_cpu(cl->cl_next_free_rec); i ++) {
 		if (i == victim)
 			continue;
-		if (!cl->cl_recs[i].c_free)
+		if (le32_to_cpu(cl->cl_recs[i].c_free) < bits_wanted)
 			continue;
 
 		ac->ac_chain = i;

_

Patches currently in -mm which might be from [email protected] are