From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [patch 15/21] Filesystem: XFS slab defragmentation Date: Sat, 10 May 2008 02:55:54 -0400 Message-ID: <20080510065554.GA26734@infradead.org> References: <20080510030831.796641881@sgi.com> <20080510030918.159429884@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Mel Gorman , andi@firstfloor.org, Rik van Riel , Pekka Enberg , mpm@selenic.com To: Christoph Lameter Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:35785 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750707AbYEJGz7 (ORCPT ); Sat, 10 May 2008 02:55:59 -0400 Content-Disposition: inline In-Reply-To: <20080510030918.159429884@sgi.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, May 09, 2008 at 08:08:46PM -0700, Christoph Lameter wrote: > + kmem_cache_setup_defrag(xfs_vnode_zone, get_inodes, kick_inodes); So you're exporting get_inodes and kick_inodes just to use it in always the same way. Much better to have a kmem_cache_set_inode_defrag helper and keep them static in inode.c