From: Martin Schwidefsky <schwidefsky@de.ibm.com>
To: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] s390 (4/12): z/VM monitor stream.
Date: Fri, 8 Oct 2004 19:37:56 +0200 [thread overview]
Message-ID: <20041008173756.GE7356@mschwid3.boeblingen.de.ibm.com> (raw)
[PATCH] s390: z/VM monitor stream.
From: Gerald Schaefer <geraldsc@de.ibm.com>
z/VM monitor stream changes:
- Reduce stack usage of appldata_get_mem_data.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
diffstat:
arch/s390/appldata/appldata_mem.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff -urN linux-2.6/arch/s390/appldata/appldata_mem.c linux-2.6-patched/arch/s390/appldata/appldata_mem.c
--- linux-2.6/arch/s390/appldata/appldata_mem.c 2004-08-14 12:54:50.000000000 +0200
+++ linux-2.6-patched/arch/s390/appldata/appldata_mem.c 2004-10-08 19:19:11.000000000 +0200
@@ -102,8 +102,12 @@
*/
static void appldata_get_mem_data(void *data)
{
- struct sysinfo val;
- struct page_state ps;
+ /*
+ * don't put large structures on the stack, we are
+ * serialized through the appldata_ops_lock and can use static
+ */
+ static struct sysinfo val;
+ static struct page_state ps;
struct appldata_mem_data *mem_data;
mem_data = data;
reply other threads:[~2004-10-08 17:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20041008173756.GE7356@mschwid3.boeblingen.de.ibm.com \
--to=schwidefsky@de.ibm.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®