From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,senozhatsky@chromium.org,minchan@kernel.org,elfring@users.sourceforge.net,akpm@linux-foundation.org
Subject: + zsmalloc-simplify-data-output-in-zs_stats_size_show.patch added to mm-unstable branch
Date: Thu, 04 Jun 2026 10:26:47 -0700 [thread overview]
Message-ID: <20260604172648.27B151F00893@smtp.kernel.org> (raw)
The patch titled
Subject: zsmalloc: simplify data output in zs_stats_size_show()
has been added to the -mm mm-unstable branch. Its filename is
zsmalloc-simplify-data-output-in-zs_stats_size_show.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/zsmalloc-simplify-data-output-in-zs_stats_size_show.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
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 via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Markus Elfring <elfring@users.sourceforge.net>
Subject: zsmalloc: simplify data output in zs_stats_size_show()
Date: Thu, 4 Jun 2026 10:20:03 +0200
Move the specification for a line break from a seq_puts() call to a
seq_printf() call.
The source code was transformed by using the Coccinelle software.
Link: https://lore.kernel.org/126a924b-6f68-43bf-ae5a-449fb93e527b@web.de
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/zsmalloc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/mm/zsmalloc.c~zsmalloc-simplify-data-output-in-zs_stats_size_show
+++ a/mm/zsmalloc.c
@@ -565,8 +565,7 @@ static int zs_stats_size_show(struct seq
total_freeable += freeable;
}
- seq_puts(s, "\n");
- seq_printf(s, " %5s %5s ", "Total", "");
+ seq_printf(s, "\n %5s %5s ", "Total", "");
for (fg = ZS_INUSE_RATIO_10; fg < NR_FULLNESS_GROUPS; fg++)
seq_printf(s, "%9lu ", inuse_totals[fg]);
_
Patches currently in -mm which might be from elfring@users.sourceforge.net are
zsmalloc-simplify-data-output-in-zs_stats_size_show.patch
next reply other threads:[~2026-06-04 17:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-04 17:26 Andrew Morton [this message]
2026-06-05 8:41 ` + zsmalloc-simplify-data-output-in-zs_stats_size_show.patch added to mm-unstable branch Sergey Senozhatsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260604172648.27B151F00893@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=elfring@users.sourceforge.net \
--cc=minchan@kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=senozhatsky@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.