Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757683AbYF0FmX (ORCPT ); Fri, 27 Jun 2008 01:42:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751204AbYF0FmP (ORCPT ); Fri, 27 Jun 2008 01:42:15 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:60381 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750704AbYF0FmO (ORCPT ); Fri, 27 Jun 2008 01:42:14 -0400 Date: Fri, 27 Jun 2008 14:41:00 +0900 From: KOSAKI Motohiro To: "MinChan Kim" Subject: Re: [-mm][PATCH 8/10] fix shmem page migration incorrectness on memcgroup Cc: kosaki.motohiro@jp.fujitsu.com, "KAMEZAWA Hiroyuki" , LKML , linux-mm , "Andrew Morton" , "Lee Schermerhorn" , "Rik van Riel" , "Daisuke Nishimura" In-Reply-To: <28c262360806262208i6791d67at446f7323ded16206@mail.gmail.com> References: <20080625190750.D864.KOSAKI.MOTOHIRO@jp.fujitsu.com> <28c262360806262208i6791d67at446f7323ded16206@mail.gmail.com> Message-Id: <20080627142950.7A83.KOSAKI.MOTOHIRO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.42 [ja] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 770 Lines: 25 > > mem_cgroup_uncharge() against old page is done after radix-tree-replacement. > > And there were special handling to ingore swap-cache page. But, shmem can > > be swap-cache and file-cache at the same time. Chekcing PageSwapCache() is > > not correct here. Check PageAnon() instead. > > When/How shmem can be both swap-cache and file-cache ? > I can't understand that situation. Hi see, shmem_writepage() -> add_to_swap_cache() -> SetPageSwapCache() BTW: his file-cache mean !Anon, not mean !SwapBacked. -- 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/