Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755307Ab1BCO1M (ORCPT ); Thu, 3 Feb 2011 09:27:12 -0500 Received: from zene.cmpxchg.org ([85.214.230.12]:40513 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755045Ab1BCO1L (ORCPT ); Thu, 3 Feb 2011 09:27:11 -0500 From: Johannes Weiner To: Andrew Morton Cc: KAMEZAWA Hiroyuki , Daisuke Nishimura , Balbir Singh , , Subject: [patch 1/5] memcg: no uncharged pages reach page_cgroup_zoneinfo Date: Thu, 3 Feb 2011 15:26:02 +0100 Message-Id: <1296743166-9412-2-git-send-email-hannes@cmpxchg.org> X-Mailer: git-send-email 1.7.4 In-Reply-To: <1296743166-9412-1-git-send-email-hannes@cmpxchg.org> References: <1296743166-9412-1-git-send-email-hannes@cmpxchg.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 815 Lines: 30 All callsites check PCG_USED before passing pc->mem_cgroup, so the latter is never NULL. Signed-off-by: Johannes Weiner --- mm/memcontrol.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index e071d7e..85b4b5a 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -370,9 +370,6 @@ page_cgroup_zoneinfo(struct page_cgroup *pc) int nid = page_cgroup_nid(pc); int zid = page_cgroup_zid(pc); - if (!mem) - return NULL; - return mem_cgroup_zoneinfo(mem, nid, zid); } -- 1.7.4 -- 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/