From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <20080216004634.452961946@sgi.com> References: <20080216004526.763643520@sgi.com> Date: Fri, 15 Feb 2008 16:45:38 -0800 From: Christoph Lameter Subject: [patch 12/17] FS: XFS slab defragmentation Content-Disposition: inline; filename=0057-FS-XFS-slab-defragmentation.patch Sender: owner-linux-mm@kvack.org Return-Path: To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, Mel Gorman , andi@firstfloor.org List-ID: 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/fs/xfs/linux-2.6/xfs_super.c =================================================================== --- linux-2.6.orig/fs/xfs/linux-2.6/xfs_super.c 2008-02-14 15:19:13.781516819 -0800 +++ linux-2.6/fs/xfs/linux-2.6/xfs_super.c 2008-02-15 15:49:28.377288588 -0800 @@ -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); -- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org