Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758133AbXKGTA3 (ORCPT ); Wed, 7 Nov 2007 14:00:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754041AbXKGTAR (ORCPT ); Wed, 7 Nov 2007 14:00:17 -0500 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29]:39864 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753208AbXKGTAQ (ORCPT ); Wed, 7 Nov 2007 14:00:16 -0500 Date: Wed, 7 Nov 2007 11:00:12 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: =?utf-8?B?SsO2cm4=?= Engel cc: akpm@linux-foundatin.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mel Gorman Subject: Re: [patch 14/23] inodes: Support generic defragmentation In-Reply-To: <20071107185113.GC8918@lazybastard.org> Message-ID: References: <20071107011130.382244340@sgi.com> <20071107011229.893091119@sgi.com> <20071107101748.GC7374@lazybastard.org> <20071107185113.GC8918@lazybastard.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1700579579-1824650294-1194462012=:12363" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1739 Lines: 43 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1700579579-1824650294-1194462012=:12363 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 7 Nov 2007, J=F6rn Engel wrote: > > The pointer is for communication between the get and kick methods. get(= )=20 > > can modify kick() behavior by returning a pointer to a data structure = or=20 > > using the pointer to set a flag. F.e. get() may discover that there is = an=20 > > unreclaimable object and set a flag that causes kick to simply undo the= =20 > > refcount increment. get() may build a map for the objects and indicate = in=20 > > the map special treatment.=20 >=20 > Is there a get/kick pair that actually does this? So far I haven't > found anything like it. Hmmm.. Nothing uses it at this point. I went through a series of get/kicks during development. Some needed it. I suspect that we will need it when we= =20 implement reallocation instead of simply reclaiming. It is also necessary if we get into the situation where we want to optimize the reclaim. At=20 that point the kick method needs to know how far get() got before the=20 action was aborted in order to fix up only certain refcounts. > Also, something vaguely matching that paragraph might make sense in a > kerneldoc header to the function. ;) Its described in slab.h ---1700579579-1824650294-1194462012=:12363-- - 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/