From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761607AbYEJDSw (ORCPT ); Fri, 9 May 2008 23:18:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757105AbYEJDKa (ORCPT ); Fri, 9 May 2008 23:10:30 -0400 Received: from relay2.sgi.com ([192.48.171.30]:52609 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751747AbYEJDJS (ORCPT ); Fri, 9 May 2008 23:09:18 -0400 Message-Id: <20080510030918.159429884@sgi.com> References: <20080510030831.796641881@sgi.com> User-Agent: quilt/0.46-1 Date: Fri, 09 May 2008 20:08:46 -0700 From: Christoph Lameter To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org CC: linux-fsdevel@vger.kernel.org Cc: Mel Gorman Cc: andi@firstfloor.org Cc: Rik van Riel Cc: Pekka Enberg Cc: mpm@selenic.com Subject: [patch 15/21] Filesystem: XFS slab defragmentation Content-Disposition: inline; filename=0027-FS-XFS-slab-defragmentation.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Support inode defragmentation for xfs Reviewed-by: Rik van Riel Signed-off-by: Christoph Lameter --- fs/xfs/linux-2.6/xfs_super.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 8831d95..555d84c 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c @@ -862,6 +862,7 @@ xfs_init_zones(void) xfs_ioend_zone = kmem_zone_init(sizeof(xfs_ioend_t), "xfs_ioend"); if (!xfs_ioend_zone) goto out_destroy_vnode_zone; + kmem_cache_setup_defrag(xfs_vnode_zone, get_inodes, kick_inodes); xfs_ioend_pool = mempool_create_slab_pool(4 * MAX_BUF_PER_PAGE, xfs_ioend_zone); -- 1.5.4.4 --