+ proc-slightly-faster-proc-limits.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: fs/proc/base.c: slightly faster /proc/*/limits
has been added to the -mm tree.  Its filename is
     proc-slightly-faster-proc-limits.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/proc-slightly-faster-proc-limits.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/proc-slightly-faster-proc-limits.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/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Subject: fs/proc/base.c: slightly faster /proc/*/limits

Header of /proc/*/limits is a fixed string, so print it directly without
formatting specifiers.

Link: http://lkml.kernel.org/r/20181203164242.GB6904@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/proc/base.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- a/fs/proc/base.c~proc-slightly-faster-proc-limits
+++ a/fs/proc/base.c
@@ -581,8 +581,10 @@ static int proc_pid_limits(struct seq_fi
 	/*
 	 * print the file header
 	 */
-       seq_printf(m, "%-25s %-20s %-20s %-10s\n",
-		  "Limit", "Soft Limit", "Hard Limit", "Units");
+	seq_puts(m, "Limit                     "
+		"Soft Limit           "
+		"Hard Limit           "
+		"Units     \n");
 
 	for (i = 0; i < RLIM_NLIMITS; i++) {
 		if (rlim[i].rlim_cur == RLIM_INFINITY)
_

Patches currently in -mm which might be from adobriyan@xxxxxxxxx are

mm-make-migratetype_names-const-char.patch
mm-make-migrate_reason_names-const-char.patch
mm-make-free_reserved_area-return-const-char.patch
proc-delete-unnecessary-variable-in-proc_alloc_inode.patch
proc-slightly-faster-proc-limits.patch
coding-style-dont-use-extern-with-function-prototypes.patch
drop-silly-static-inline-asmlinkage-from-dump_stack.patch
make-initcall_level_names-const-char.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux