diff options
author | Paul Jackson <pj@sgi.com> | 2006-03-24 06:16:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 10:33:23 -0500 |
commit | fffb60f93ce5880aade88e01d7133b52a4879710 (patch) | |
tree | 7882f0550af8580c0646306f6d391fe610f7ef8c /net | |
parent | 4b6a9316fab51af611dc8671f296734089f6a22a (diff) |
[PATCH] cpuset memory spread: slab cache format
Rewrap the overly long source code lines resulting from the previous
patch's addition of the slab cache flag SLAB_MEM_SPREAD. This patch
contains only formatting changes, and no function change.
Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/socket.c | 3 | ||||
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/net/socket.c b/net/socket.c index 7a5a56874efa..5211ba270375 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -319,7 +319,8 @@ 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|SLAB_MEM_SPREAD, | 322 | 0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT| |
323 | SLAB_MEM_SPREAD), | ||
323 | init_once, NULL); | 324 | init_once, NULL); |
324 | if (sock_inode_cachep == NULL) | 325 | if (sock_inode_cachep == NULL) |
325 | return -ENOMEM; | 326 | return -ENOMEM; |
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index befc0c5ca9e5..ad9d9fc4e734 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -849,9 +849,10 @@ init_once(void * foo, kmem_cache_t * cachep, unsigned long flags) | |||
849 | int register_rpc_pipefs(void) | 849 | 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|SLAB_MEM_SPREAD, | 853 | 0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT| |
854 | init_once, NULL); | 854 | SLAB_MEM_SPREAD), |
855 | init_once, NULL); | ||
855 | if (!rpc_inode_cachep) | 856 | if (!rpc_inode_cachep) |
856 | return -ENOMEM; | 857 | return -ENOMEM; |
857 | register_filesystem(&rpc_pipe_fs_type); | 858 | register_filesystem(&rpc_pipe_fs_type); |