[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080822144808.6652810e.kamezawa.hiroyu@jp.fujitsu.com>
Date: Fri, 22 Aug 2008 14:48:08 +0900
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To: Daisuke Nishimura <nishimura@....nes.nec.co.jp>
Cc: LKML <linux-kernel@...r.kernel.org>,
"balbir@...ux.vnet.ibm.com" <balbir@...ux.vnet.ibm.com>,
"yamamoto@...inux.co.jp" <yamamoto@...inux.co.jp>,
ryov@...inux.co.jp, "linux-mm@...ck.org" <linux-mm@...ck.org>
Subject: Re: [RFC][PATCH -mm 6/7] memcg:
make-mapping-null-before-calling-uncharge.patch
On Fri, 22 Aug 2008 13:57:43 +0900
Daisuke Nishimura <nishimura@....nes.nec.co.jp> wrote:
> > @@ -379,6 +377,15 @@ static void migrate_page_copy(struct pag
> > ClearPagePrivate(page);
> > set_page_private(page, 0);
> > page->mapping = NULL;
> You forget to remove this line :)
>
Ouch, thanks.
-Kame
> Thanks,
> Daisuke Nishimura.
>
> > + /* page->mapping contains a flag for PageAnon() */
> > + if (PageAnon(page)) {
> > + /* This page is uncharged at try_to_unmap(). */
> > + page->mapping = NULL;
> > + } else {
> > + /* Obsolete file cache should be uncharged */
> > + page->mapping = NULL;
> > + mem_cgroup_uncharge_cache_page(page);
> > + }
> >
> > /*
> > * If any waiters have accumulated on the new page then
> >
>
--
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