Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755246Ab0A2UxO (ORCPT ); Fri, 29 Jan 2010 15:53:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755062Ab0A2UvT (ORCPT ); Fri, 29 Jan 2010 15:51:19 -0500 Received: from nlpi157.sbcis.sbc.com ([207.115.36.171]:42685 "EHLO nlpi157.prodigy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754677Ab0A2UvO (ORCPT ); Fri, 29 Jan 2010 15:51:14 -0500 Message-Id: <20100129205006.657323814@quilx.com> References: <20100129204931.789743493@quilx.com> User-Agent: quilt/0.46-1 Date: Fri, 29 Jan 2010 14:49:46 -0600 From: Christoph Lameter To: Andi Kleen Cc: Dave Chinner , Christoph Lameter Cc: Rik van Riel Cc: Pekka Enberg Cc: akpm@linux-foundation.org Cc: Miklos Szeredi Cc: Nick Piggin Cc: Hugh Dickins Cc: linux-kernel@vger.kernel.org Subject: Filesystem: XFS slab defragmentation Content-Disposition: inline; filename=xfs_defrag Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1063 Lines: 30 Support inode defragmentation for xfs Reviewed-by: Rik van Riel Signed-off-by: Christoph Lameter Signed-off-by: Christoph Lameter --- fs/xfs/linux-2.6/xfs_super.c | 2 ++ 1 file changed, 2 insertions(+) Index: slab-2.6/fs/xfs/linux-2.6/xfs_super.c =================================================================== --- slab-2.6.orig/fs/xfs/linux-2.6/xfs_super.c 2010-01-22 15:09:43.000000000 -0600 +++ slab-2.6/fs/xfs/linux-2.6/xfs_super.c 2010-01-22 16:23:51.000000000 -0600 @@ -1608,6 +1608,8 @@ xfs_init_zones(void) if (!xfs_ioend_zone) goto out; + 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) -- -- 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/