[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080418121046.892c44a5.kamezawa.hiroyu@jp.fujitsu.com>
Date: Fri, 18 Apr 2008 12:10:46 +0900
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>, shiwh@...fujitsu.com,
"balbir@...ux.vnet.ibm.com" <balbir@...ux.vnet.ibm.com>,
"xemul@...nvz.org" <xemul@...nvz.org>
Subject: [PATCH] fix page_reset_bad_cgroup
page->page_cgroup is unsigned long. Should be cleared by 0UL.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Index: linux-2.6.25/include/linux/memcontrol.h
===================================================================
--- linux-2.6.25.orig/include/linux/memcontrol.h
+++ linux-2.6.25/include/linux/memcontrol.h
@@ -30,7 +30,7 @@ struct mm_struct;
extern void mm_init_cgroup(struct mm_struct *mm, struct task_struct *p);
extern void mm_free_cgroup(struct mm_struct *mm);
-#define page_reset_bad_cgroup(page) ((page)->page_cgroup = 0)
+#define page_reset_bad_cgroup(page) ((page)->page_cgroup = 0UL)
extern struct page_cgroup *page_get_page_cgroup(struct page *page);
extern int mem_cgroup_charge(struct page *page, struct mm_struct *mm,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists