From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail191.messagelabs.com (mail191.messagelabs.com [216.82.242.19]) by kanga.kvack.org (Postfix) with ESMTP id 961106B008A for ; Tue, 4 Jan 2011 11:18:16 -0500 (EST) Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.31.245]) by e23smtp08.au.ibm.com (8.14.4/8.13.1) with ESMTP id p04GIK8b027865 for ; Wed, 5 Jan 2011 03:18:20 +1100 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p04GI8jK2519132 for ; Wed, 5 Jan 2011 03:18:08 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p04GI78T023953 for ; Wed, 5 Jan 2011 03:18:08 +1100 Date: Tue, 4 Jan 2011 21:48:05 +0530 From: Balbir Singh Subject: Re: [PATCH v2 0/7] Change page reference handling semantic of page cache Message-ID: <20110104161805.GE3120@balbir.in.ibm.com> Reply-To: balbir@linux.vnet.ibm.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org To: Minchan Kim Cc: Andrew Morton , linux-mm , LKML , KAMEZAWA Hiroyuki , Hugh Dickins List-ID: * MinChan Kim [2011-01-03 00:44:29]: > Now we increases page reference on add_to_page_cache but doesn't decrease it > in remove_from_page_cache. Such asymmetric makes confusing about > page reference so that caller should notice it and comment why they > release page reference. It's not good API. > > Long time ago, Hugh tried it[1] but gave up of reason which > reiser4's drop_page had to unlock the page between removing it from > page cache and doing the page_cache_release. But now the situation is > changed. I think at least things in current mainline doesn't have any > obstacles. The problem is fs or somethings out of mainline. > If it has done such thing like reiser4, this patch could be a problem but > they found it when compile time since we remove remove_from_page_cache. > > [1] http://lkml.org/lkml/2004/10/24/140 > > The series configuration is following as. > > [1/7] : This patch introduces new API delete_from_page_cache. > [2,3,4,5/7] : Change remove_from_page_cache with delete_from_page_cache. > Intentionally I divide patch per file since someone might have a concern > about releasing page reference of delete_from_page_cache in > somecase (ex, truncate.c) > [6/7] : Remove old API so out of fs can meet compile error when build time > and can notice it. > [7/7] : Change __remove_from_page_cache with __delete_from_page_cache, too. > In this time, I made all-in-one patch because it doesn't change old behavior > so it has no concern. Just clean up patch. > Could you please describe any testing done, was it mostly functional? -- Three Cheers, Balbir -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org