From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Lameter Subject: Re: [patch 15/19] Filesystem: XFS slab defragmentation Date: Tue, 12 Aug 2008 13:21:20 -0500 Message-ID: <48A1D4A0.2030109@linux-foundation.org> References: <20080811150616.207532384@quilx.com> <20080811150659.051842926@quilx.com> <20080812002057.GH6119@disturbed> <48A136D7.4080505@cs.helsinki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: akpm@linux-foundation.org, Christoph Lameter , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Mel Gorman , andi@firstfloor.org, Rik van Riel , mpm@selenic.com To: Pekka Enberg Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:39830 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751630AbYHLSW7 (ORCPT ); Tue, 12 Aug 2008 14:22:59 -0400 In-Reply-To: <48A136D7.4080505@cs.helsinki.fi> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Pekka Enberg wrote: > >> >> Please update this patch as per my last comment. > > Christoph, I'm dropping this patch from my tree. Just apply this patch: Subject: defrag/xfs: Move defrag setup directly after xfs_vnode_zone kmem cache creation Move the setup of the defrag directly after the creation of the xfs_vnode_zone Signed-off-by: Christoph Lameter Index: linux-2.6/fs/xfs/linux-2.6/xfs_super.c =================================================================== --- linux-2.6.orig/fs/xfs/linux-2.6/xfs_super.c 2008-08-04 08:27:09.000000000 -0500 +++ linux-2.6/fs/xfs/linux-2.6/xfs_super.c 2008-08-04 08:27:25.000000000 -0500 @@ -2021,11 +2021,11 @@ if (!xfs_vnode_zone) goto out; + kmem_cache_setup_defrag(xfs_vnode_zone, get_inodes, kick_inodes); + 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); if (!xfs_ioend_pool)