Skip to contentSkip to conversation

printk-do-not-compute-the-size-of-the-message-twice.patch removed from -mm tree

merged [email protected] 1 participant 1 message Apr 4, 2014 Printk

lore
Share & tools
lore
#0 lore raw

Subject: [merged] printk-do-not-compute-the-size-of-the-message-twice.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 04 Apr 2014 12:32:54 -0700

The patch titled
Subject: printk: do not compute the size of the message twice
has been removed from the -mm tree. Its filename was
printk-do-not-compute-the-size-of-the-message-twice.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Petr Mladek <[email protected]>
Subject: printk: do not compute the size of the message twice

This is just a tiny optimization. It removes duplicate computation of the message size.

Cc Steven Rostedt <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jan Kara <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Kay Sievers <[email protected]>

---

 kernel/printk/printk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/printk/printk.c renamed from kernel/printk/printk.c~printk-do-not-compute-the-size-of-the-message-twice +1 -1
diff -puN kernel/printk/printk.c~printk-do-not-compute-the-size-of-the-message-twice kernel/printk/printk.c
@@ -351,7 +351,7 @@ static void log_store(int facility, int
 	else
 		msg->ts_nsec = local_clock();
 	memset(log_dict(msg) + dict_len, 0, pad_len);
-	msg->len = sizeof(struct printk_log) + text_len + dict_len + pad_len;
+	msg->len = size;
 
 	/* insert message */
 	log_next_idx += msg->len;

_

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

origin.patch
linux-next.patch