From 31c138beca35875da4fff4c2185e19466827fa93 Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Thu, 9 Aug 2007 07:51:49 -0700 Subject: [PATCH] FS: XFS slab defragmentation 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 file changed, 1 insertion(+) Index: linux-2.6.24-rc6-mm1/fs/xfs/linux-2.6/xfs_super.c =================================================================== --- linux-2.6.24-rc6-mm1.orig/fs/xfs/linux-2.6/xfs_super.c 2007-12-26 17:47:05.835426348 -0800 +++ linux-2.6.24-rc6-mm1/fs/xfs/linux-2.6/xfs_super.c 2007-12-27 12:04:40.602327493 -0800 @@ -805,6 +805,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);