login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
July
»
22
Re: [PATCH 3/7] memcg: nid and zid can be calculated from zone
view
thread
Previous message: [
thread
] [date] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Balbir Singh
Subject:
Re: [PATCH 3/7] memcg: nid and zid can be calculated from zone
Date: Wednesday, July 21, 2010 - 10:36 pm
* KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> [2010-07-21 22:33:56]:
quoted text
> > > +static inline int zone_nid(struct zone *zone) > > > +{ > > > + return zone->zone_pgdat->node_id; > > > +} > > > + > > > > hmm, adding a helper and not converting the existing users of > > zone->zone_pgdat may be a little confusing particularly as both types of > > usage would exist in the same file e.g. in mem_cgroup_zone_nr_pages. > > I see. here is incrementa patch. > > Thanks > > From 62cf765251af257c98fc92a58215d101d200e7ef Mon Sep 17 00:00:00 2001 > From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> > Date: Tue, 20 Jul 2010 11:30:14 +0900 > Subject: [PATCH] memcg: convert to zone_nid() from bare zone->zone_pgdat->node_id > > Now, we have zone_nid(). this patch convert all existing users of > zone->zone_pgdat. > > Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> > --- > mm/memcontrol.c | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index 82e191f..3d5b645 100644 > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -951,7 +951,7 @@ unsigned long mem_cgroup_zone_nr_pages(struct mem_cgroup *memcg, > struct zone *zone, > enum lru_list lru) > { > - int nid = zone->zone_pgdat->node_id; > + int nid = zone_nid(zone); > int zid = zone_idx(zone); > struct mem_cgroup_per_zone *mz = mem_cgroup_zoneinfo(memcg, nid, zid); > > @@ -961,7 +961,7 @@ unsigned long mem_cgroup_zone_nr_pages(struct mem_cgroup *memcg, > struct zone_reclaim_stat *mem_cgroup_get_reclaim_stat(struct mem_cgroup *memcg, > struct zone *zone) > { > - int nid = zone->zone_pgdat->node_id; > + int nid = zone_nid(zone); > int zid = zone_idx(zone); > struct mem_cgroup_per_zone *mz = mem_cgroup_zoneinfo(memcg, nid, zid); > > @@ -1006,7 +1006,7 @@ unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan, > LIST_HEAD(pc_list); > struct list_head *src; > struct page_cgroup *pc, *tmp; > - int nid = z->zone_pgdat->node_id; > + int nid = zone_nid(z); > int zid = zone_idx(z); > struct mem_cgroup_per_zone *mz; > int lru = LRU_FILE * file + active;
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> -- Three Cheers, Balbir --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/7] memcg reclaim tracepoint
, KOSAKI Motohiro
, (Fri Jul 16, 3:12 am)
[PATCH 1/7] memcg: sc.nr_to_reclaim should be initialized
, KOSAKI Motohiro
, (Fri Jul 16, 3:13 am)
[PATCH 2/7] memcg: mem_cgroup_shrink_node_zone() doesn't n ...
, KOSAKI Motohiro
, (Fri Jul 16, 3:14 am)
[PATCH 3/7] memcg: nid and zid can be calculated from zone
, KOSAKI Motohiro
, (Fri Jul 16, 3:15 am)
[PATCH 4/7] vmscan: convert direct reclaim tracepoint to D ...
, KOSAKI Motohiro
, (Fri Jul 16, 3:16 am)
[PATCH 5/7] memcg, vmscan: add memcg reclaim tracepoint
, KOSAKI Motohiro
, (Fri Jul 16, 3:16 am)
Re: [PATCH 1/7] memcg: sc.nr_to_reclaim should be initialized
, KAMEZAWA Hiroyuki
, (Fri Jul 16, 3:17 am)
[PATCH 6/7] vmscan: convert mm_vmscan_lru_isolate to DEFIN ...
, KOSAKI Motohiro
, (Fri Jul 16, 3:17 am)
[PATCH 7/7] memcg: add mm_vmscan_memcg_isolate tracepoint
, KOSAKI Motohiro
, (Fri Jul 16, 3:18 am)
Re: [PATCH 2/7] memcg: mem_cgroup_shrink_node_zone() doesn ...
, KAMEZAWA Hiroyuki
, (Fri Jul 16, 3:18 am)
Re: [PATCH 3/7] memcg: nid and zid can be calculated from zone
, KAMEZAWA Hiroyuki
, (Fri Jul 16, 3:19 am)
Re: [PATCH 4/7] vmscan: convert direct reclaim tracepoint ...
, KAMEZAWA Hiroyuki
, (Fri Jul 16, 3:20 am)
Re: [PATCH 5/7] memcg, vmscan: add memcg reclaim tracepoint
, KAMEZAWA Hiroyuki
, (Fri Jul 16, 3:21 am)
Re: [PATCH 6/7] vmscan: convert mm_vmscan_lru_isolate to D ...
, KAMEZAWA Hiroyuki
, (Fri Jul 16, 3:22 am)
Re: [PATCH 7/7] memcg: add mm_vmscan_memcg_isolate tracepoint
, KAMEZAWA Hiroyuki
, (Fri Jul 16, 3:23 am)
Re: [PATCH 1/7] memcg: sc.nr_to_reclaim should be initialized
, Mel Gorman
, (Fri Jul 16, 3:25 am)
Re: [PATCH 2/7] memcg: mem_cgroup_shrink_node_zone() doesn ...
, Mel Gorman
, (Fri Jul 16, 3:47 am)
Re: [PATCH 3/7] memcg: nid and zid can be calculated from zone
, Mel Gorman
, (Fri Jul 16, 3:56 am)
Re: [PATCH 4/7] vmscan: convert direct reclaim tracepoint ...
, Mel Gorman
, (Fri Jul 16, 4:08 am)
Re: [PATCH 5/7] memcg, vmscan: add memcg reclaim tracepoint
, Mel Gorman
, (Fri Jul 16, 4:17 am)
Re: [PATCH 7/7] memcg: add mm_vmscan_memcg_isolate tracepoint
, Mel Gorman
, (Fri Jul 16, 4:21 am)
Re: [PATCH 7/7] memcg: add mm_vmscan_memcg_isolate tracepoint
, Mel Gorman
, (Fri Jul 16, 6:18 am)
Re: [PATCH 0/7] memcg reclaim tracepoint
, Daisuke Nishimura
, (Mon Jul 19, 6:47 pm)
Re: [PATCH 4/7] vmscan: convert direct reclaim tracepoint ...
, Steven Rostedt
, (Tue Jul 20, 3:45 pm)
Re: [PATCH 3/7] memcg: nid and zid can be calculated from zone
, KOSAKI Motohiro
, (Wed Jul 21, 6:33 am)
Re: [PATCH 1/7] memcg: sc.nr_to_reclaim should be initialized
, KOSAKI Motohiro
, (Wed Jul 21, 6:34 am)
Re: [PATCH 0/7] memcg reclaim tracepoint
, Balbir Singh
, (Wed Jul 21, 9:00 pm)
Re: [PATCH 2/7] memcg: mem_cgroup_shrink_node_zone() doesn ...
, Balbir Singh
, (Wed Jul 21, 9:49 pm)
Re: [PATCH 1/7] memcg: sc.nr_to_reclaim should be initialized
, Balbir Singh
, (Wed Jul 21, 10:31 pm)
Re: [PATCH 5/7] memcg, vmscan: add memcg reclaim tracepoint
, Balbir Singh
, (Wed Jul 21, 10:34 pm)
Re: [PATCH 3/7] memcg: nid and zid can be calculated from zone
, Balbir Singh
, (Wed Jul 21, 10:36 pm)
Re: [PATCH 3/7] memcg: nid and zid can be calculated from zone
, Mel Gorman
, (Thu Jul 22, 4:01 am)
Re: [PATCH 2/7] memcg: mem_cgroup_shrink_node_zone() doesn ...
, KOSAKI Motohiro
, (Thu Jul 22, 10:14 pm)
Re: [PATCH 1/7] memcg: sc.nr_to_reclaim should be initialized
, KOSAKI Motohiro
, (Fri Jul 23, 12:33 am)
Re: [PATCH 1/7] memcg: sc.nr_to_reclaim should be initialized
, Balbir Singh
, (Sun Jul 25, 1:25 am)
Re: [PATCH 2/7] memcg: mem_cgroup_shrink_node_zone() doesn ...
, Balbir Singh
, (Sun Jul 25, 1:28 am)
Re: [PATCH 1/7] memcg: sc.nr_to_reclaim should be initialized
, KOSAKI Motohiro
, (Sun Jul 25, 2:48 am)
Re: [PATCH 1/7] memcg: sc.nr_to_reclaim should be initialized
, Balbir Singh
, (Sun Jul 25, 9:40 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate