Skip to contentSkip to conversation

ocfs2-use-max-to-improve-ocfs2_dlm_seq_show.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Sep 2, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: ocfs2: use max() to improve ocfs2_dlm_seq_show()
has been removed from the -mm tree. Its filename was
ocfs2-use-max-to-improve-ocfs2_dlm_seq_show.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: Thorsten Blum <[email protected]>
Subject: ocfs2: use max() to improve ocfs2_dlm_seq_show()
Date: Tue, 20 Aug 2024 04:16:07 +0200

Use the max() macro to simplify the ocfs2_dlm_seq_show() function and improve its readability.

---

 fs/ocfs2/dlmglue.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
fs/ocfs2/dlmglue.c renamed from fs/ocfs2/dlmglue.c~ocfs2-use-max-to-improve-ocfs2_dlm_seq_show +2 -5
@@ -3151,11 +3151,8 @@ static int ocfs2_dlm_seq_show(struct seq
 #ifdef CONFIG_OCFS2_FS_STATS
 	if (!lockres->l_lock_wait && dlm_debug->d_filter_secs) {
 		now = ktime_to_us(ktime_get_real());
-		if (lockres->l_lock_prmode.ls_last >
-		    lockres->l_lock_exmode.ls_last)
-			last = lockres->l_lock_prmode.ls_last;
-		else
-			last = lockres->l_lock_exmode.ls_last;
+		last = max(lockres->l_lock_prmode.ls_last,
+			   lockres->l_lock_exmode.ls_last);
 		/*
 		 * Use d_filter_secs field to filter lock resources dump,
 		 * the default d_filter_secs(0) value filters nothing,

_

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

mm-shrinker-use-min-to-improve-shrinker_debugfs_scan_write.patch