lkml.org 
[lkml]   [2008]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 15/19] Filesystem: XFS slab defragmentation
On Mon, Aug 11, 2008 at 08:06:31AM -0700, Christoph Lameter wrote:
> Support inode defragmentation for xfs
>
> Reviewed-by: Rik van Riel <riel@redhat.com>
> Signed-off-by: Christoph Lameter <clameter@sgi.com>
> Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
>
> ---
> fs/xfs/linux-2.6/xfs_super.c | 1 +
> 1 file changed, 1 insertion(+)
>
> Index: linux-next/fs/xfs/linux-2.6/xfs_super.c
> ===================================================================
> --- linux-next.orig/fs/xfs/linux-2.6/xfs_super.c 2008-08-11 07:42:11.892359719 -0700
> +++ linux-next/fs/xfs/linux-2.6/xfs_super.c 2008-08-11 07:47:05.072348463 -0700
> @@ -1947,6 +1947,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);

Please update this patch as per my last comment.

Cheers,

Dave.
--
Dave Chinner
david@fromorbit.com


\
 
 \ /
  Last update: 2008-08-12 02:29    [W:0.110 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site