lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 7 Apr 2008 23:13:50 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Christoph Lameter <clameter@....com>
Cc:	linux-mm@...ck.org, Mel Gorman <mel@...net.ie>,
	andi@...stfloor.org, Nick Piggin <npiggin@...e.de>,
	Rik van Riel <riel@...hat.com>,
	Pekka Enberg <penberg@...helsinki.fi>, netdev@...r.kernel.org
Subject: Re: [patch 16/18] FS: Socket inode defragmentation

On Fri, 04 Apr 2008 16:02:14 -0700 Christoph Lameter <clameter@....com> wrote:

> From: Christoph Lameter <clameter@....com>
> To: akpm@...ux-foundation.org
> Cc: linux-mm@...ck.org
> Cc: Mel Gorman <mel@...net.ie>
> Cc: andi@...stfloor.org
> Cc: Nick Piggin <npiggin@...e.de>
> Cc: Rik van Riel <riel@...hat.com>
> Cc: Pekka Enberg <penberg@...helsinki.fi>

The net people should get to hear about this, I guess..

> Support inode defragmentation for sockets
> 
> Reviewed-by: Rik van Riel <riel@...hat.com>
> Signed-off-by: Christoph Lameter <clameter@....com>
> ---
>  net/socket.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/net/socket.c b/net/socket.c
> index 9d3fbfb..205f450 100644
> --- a/net/socket.c
> +++ b/net/socket.c
> @@ -269,6 +269,12 @@ static void init_once(struct kmem_cache *cachep, void *foo)
>  	inode_init_once(&ei->vfs_inode);
>  }
>  
> +static void *sock_get_inodes(struct kmem_cache *s, int nr, void **v)
> +{
> +	return fs_get_inodes(s, nr, v,
> +		offsetof(struct socket_alloc, vfs_inode));
> +}
> +
>  static int init_inodecache(void)
>  {
>  	sock_inode_cachep = kmem_cache_create("sock_inode_cache",
> @@ -280,6 +286,8 @@ static int init_inodecache(void)
>  					      init_once);
>  	if (sock_inode_cachep == NULL)
>  		return -ENOMEM;
> +	kmem_cache_setup_defrag(sock_inode_cachep,
> +			sock_get_inodes, kick_inodes);
>  	return 0;
>  }
>  
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ