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/