Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Jun 13, 2024

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit a15118757dad19c7f17700903d169676f244e318:

helper_thread: check for null scalloc return value (2024-06-11 16:19:38 -0400)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to bd7492a47a5bb0ec66a05ae0cff0c9065afb0f88:

smalloc: add a comment explaining why scalloc does not zero memory (2024-06-12 13:06:09 -0400)

----------------------------------------------------------------
Vincent Fu (1):
smalloc: add a comment explaining why scalloc does not zero memory

 smalloc.c | 4 ++++
 1 file changed, 4 insertions(+)

---

Diff of recent changes:

smalloc.c +4 -0
index 23243054..ac7ef701 100644
@@ -566,6 +566,10 @@ void *smalloc(size_t size)
 
 void *scalloc(size_t nmemb, size_t size)
 {
+	/*
+	 * smalloc_pool (called by smalloc) will zero the memory, so we don't
+	 * need to do it here.
+	 */
 	return smalloc(nmemb * size);
 }