Re: [PATCH 2/2][cleanup] memcg: renaming of mem variable to memcg

From: Raghavendra K T
Date: Thu Aug 11 2011 - 04:21:30 EST

On 08/11/2011 01:35 PM, Michal Hocko wrote:
On Wed 10-08-11 22:59:42, Raghavendra K T wrote:
The memcg code sometimes uses "struct mem_cgroup *mem" and sometimes uses
"struct mem_cgroup *memcg". This patch renames all mem variables to memcg in header file.

Any reason (other than that this is a different file) to have this as a
separate patch?

Yes you are right, There is no much significant reason. since source file patch was so huge and viable for conflicts, thought it would apply clean easily.

From: Raghavendra K T<raghavendra.kt@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Raghavendra K T<raghavendra.kt@xxxxxxxxxxxxxxxxxx>
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 5633f51..fb1ed1c 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -88,8 +88,8 @@ extern void mem_cgroup_uncharge_end(void);
extern void mem_cgroup_uncharge_page(struct page *page);
extern void mem_cgroup_uncharge_cache_page(struct page *page);

To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx For more info on Linux MM,
see: .
Fight unfair telecom internet charges in Canada: sign
Don't email:<a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx</a>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at