+ printk-do-not-compute-the-size-of-the-message-twice.patch added to -mm tree
Subject: + printk-do-not-compute-the-size-of-the-message-twice.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 18 Feb 2014 13:03:46 -0800
The patch titled
Subject: printk: do not compute the size of the message twice
has been added to the -mm tree. Its filename is
printk-do-not-compute-the-size-of-the-message-twice.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/printk-do-not-compute-the-size-of-the-message-twice.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/printk-do-not-compute-the-size-of-the-message-twice.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
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.
---
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
@@ -351,7 +351,7 @@ static void log_store(int facility, intelse 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
printk-remove-duplicated-check-for-log-level.patch printk-remove-obsolete-check-for-log-level-c.patch printk-add-comment-about-tricky-check-for-text-buffer-size.patch printk-use-also-the-last-bytes-in-the-ring-buffer.patch printk-do-not-compute-the-size-of-the-message-twice.patch