From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Jack Steiner <steiner@sgi.com>
Cc: Linux Memory Management <linux-mm@kvack.org>
Subject: [patch 2/4] pcp: dynamic lists
Date: Sat, 09 Apr 2005 23:24:09 +1000 [thread overview]
Message-ID: <4257D779.30801@yahoo.com.au> (raw)
In-Reply-To: <4257D74C.3010703@yahoo.com.au>
[-- Attachment #1: Type: text/plain, Size: 32 bytes --]
2/4
--
SUSE Labs, Novell Inc.
[-- Attachment #2: pcp-dynamic-lists.patch --]
[-- Type: text/plain, Size: 1108 bytes --]
Index: linux-2.6/mm/page_alloc.c
===================================================================
--- linux-2.6.orig/mm/page_alloc.c 2005-04-09 22:35:44.000000000 +1000
+++ linux-2.6/mm/page_alloc.c 2005-04-09 22:43:58.000000000 +1000
@@ -70,7 +70,7 @@ struct zone *zone_table[1 << (ZONES_SHIF
EXPORT_SYMBOL(zone_table);
struct zone_pagesets {
- struct per_cpu_pageset p[TOTAL_ZONES];
+ struct per_cpu_pageset *p[TOTAL_ZONES];
};
#define this_zone_pagesets() (&__get_cpu_var(zone_pagesets))
@@ -80,7 +80,7 @@ struct zone_pagesets {
(NODEZONE((zone)->zone_pgdat->node_id, zone_idx(zone)))
#define zone_pageset(zp, zone) \
- (&zp->p[zone_pagesets_idx(zone)])
+ (zp->p[zone_pagesets_idx(zone)])
/*
* List of pointers to per_cpu_pagesets for each zone.
@@ -1579,7 +1579,8 @@ void __init build_percpu_pagelists(void)
struct per_cpu_pages *pcp;
zp = cpu_zone_pagesets(cpu);
- pageset = &zp->p[NODEZONE(nid, j)];
+ pageset = alloc_bootmem_node(pgdat, sizeof(*pageset));
+ zp->p[NODEZONE(nid, j)] = pageset;
pcp = &pageset->pcp[0]; /* hot */
pcp->count = 0;
next prev parent reply other threads:[~2005-04-09 13:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-09 13:23 [patch 1/4] pcp: zonequeues Nick Piggin
2005-04-09 13:24 ` Nick Piggin [this message]
2005-04-09 13:24 ` [patch 3/4] pcp: NULL pagesets Nick Piggin
2005-04-09 13:25 ` [patch 4/4] pcp: only local pagesets Nick Piggin
2005-04-09 13:28 ` [patch 1/4] pcp: zonequeues Nick Piggin
2005-04-09 15:25 ` Nick Piggin
2005-04-12 16:15 ` Jack Steiner
2005-04-13 1:34 ` Nick Piggin
2005-04-12 19:02 ` Christoph Lameter
2005-04-13 1:40 ` Nick Piggin
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=4257D779.30801@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=linux-mm@kvack.org \
--cc=steiner@sgi.com \
/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