Skip to contentSkip to conversation

ocfs2-use-get_random_u32-where-appropriate.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Apr 15

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: ocfs2: use get_random_u32() where appropriate
has been removed from the -mm tree. Its filename was
ocfs2-use-get_random_u32-where-appropriate.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: David Carlier <[email protected]>
Subject: ocfs2: use get_random_u32() where appropriate
Date: Sun, 5 Apr 2026 16:47:20 +0100

Use the typed random integer helpers instead of get_random_bytes() when filling a single integer variable. The helpers return the value directly, require no pointer or size argument, and better express intent.

---

 fs/ocfs2/super.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/super.c renamed from fs/ocfs2/super.c~ocfs2-use-get_random_u32-where-appropriate +1 -1
@@ -2124,7 +2124,7 @@ static int ocfs2_initialize_super(struct
 		osb->osb_cluster_stack[0] = '\0';
 	}
 
-	get_random_bytes(&osb->s_next_generation, sizeof(u32));
+	osb->s_next_generation = get_random_u32();
 
 	/*
 	 * FIXME

_

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

mm-hugetlb-restore-reservation-on-error-in-hugetlb_mfill_atomic_pte-resubmission-path.patch mm-page_io-use-sio-len-for-pswpin-accounting-in-sio_read_complete.patch