diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/socket.c | 2 | ||||
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/socket.c b/net/socket.c index e2d5bae994de..7a5a56874efa 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -319,7 +319,7 @@ static int init_inodecache(void) | |||
319 | { | 319 | { |
320 | sock_inode_cachep = kmem_cache_create("sock_inode_cache", | 320 | sock_inode_cachep = kmem_cache_create("sock_inode_cache", |
321 | sizeof(struct socket_alloc), | 321 | sizeof(struct socket_alloc), |
322 | 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT, | 322 | 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, |
323 | init_once, NULL); | 323 | init_once, NULL); |
324 | if (sock_inode_cachep == NULL) | 324 | if (sock_inode_cachep == NULL) |
325 | return -ENOMEM; | 325 | return -ENOMEM; |
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index a5c0c7b6e151..befc0c5ca9e5 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -850,7 +850,7 @@ int register_rpc_pipefs(void) | |||
850 | { | 850 | { |
851 | rpc_inode_cachep = kmem_cache_create("rpc_inode_cache", | 851 | rpc_inode_cachep = kmem_cache_create("rpc_inode_cache", |
852 | sizeof(struct rpc_inode), | 852 | sizeof(struct rpc_inode), |
853 | 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT, | 853 | 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, |
854 | init_once, NULL); | 854 | init_once, NULL); |
855 | if (!rpc_inode_cachep) | 855 | if (!rpc_inode_cachep) |
856 | return -ENOMEM; | 856 | return -ENOMEM; |