Support inode defragmentation for xfs
Reviewed-by: Rik van Riel <[email protected]>
Signed-off-by: Christoph Lameter <[email protected]>
Signed-off-by: Christoph Lameter <[email protected]>
---
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)
--