提交 fffb60f9 编写于 作者: P Paul Jackson 提交者: Linus Torvalds

[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: NPaul Jackson <pj@sgi.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 4b6a9316
...@@ -241,7 +241,8 @@ static int init_inodecache(void) ...@@ -241,7 +241,8 @@ static int init_inodecache(void)
{ {
adfs_inode_cachep = kmem_cache_create("adfs_inode_cache", adfs_inode_cachep = kmem_cache_create("adfs_inode_cache",
sizeof(struct adfs_inode_info), sizeof(struct adfs_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (adfs_inode_cachep == NULL) if (adfs_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -98,7 +98,8 @@ static int init_inodecache(void) ...@@ -98,7 +98,8 @@ static int init_inodecache(void)
{ {
affs_inode_cachep = kmem_cache_create("affs_inode_cache", affs_inode_cachep = kmem_cache_create("affs_inode_cache",
sizeof(struct affs_inode_info), sizeof(struct affs_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (affs_inode_cachep == NULL) if (affs_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -427,7 +427,8 @@ befs_init_inodecache(void) ...@@ -427,7 +427,8 @@ befs_init_inodecache(void)
{ {
befs_inode_cachep = kmem_cache_create("befs_inode_cache", befs_inode_cachep = kmem_cache_create("befs_inode_cache",
sizeof (struct befs_inode_info), sizeof (struct befs_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (befs_inode_cachep == NULL) { if (befs_inode_cachep == NULL) {
printk(KERN_ERR "befs_init_inodecache: " printk(KERN_ERR "befs_init_inodecache: "
......
...@@ -257,7 +257,8 @@ static int init_inodecache(void) ...@@ -257,7 +257,8 @@ static int init_inodecache(void)
{ {
bfs_inode_cachep = kmem_cache_create("bfs_inode_cache", bfs_inode_cachep = kmem_cache_create("bfs_inode_cache",
sizeof(struct bfs_inode_info), sizeof(struct bfs_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (bfs_inode_cachep == NULL) if (bfs_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -319,7 +319,8 @@ void __init bdev_cache_init(void) ...@@ -319,7 +319,8 @@ void __init bdev_cache_init(void)
{ {
int err; int err;
bdev_cachep = kmem_cache_create("bdev_cache", sizeof(struct bdev_inode), bdev_cachep = kmem_cache_create("bdev_cache", sizeof(struct bdev_inode),
0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD|SLAB_PANIC, 0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD|SLAB_PANIC),
init_once, NULL); init_once, NULL);
err = register_filesystem(&bd_type); err = register_filesystem(&bd_type);
if (err) if (err)
......
...@@ -695,7 +695,8 @@ cifs_init_inodecache(void) ...@@ -695,7 +695,8 @@ cifs_init_inodecache(void)
{ {
cifs_inode_cachep = kmem_cache_create("cifs_inode_cache", cifs_inode_cachep = kmem_cache_create("cifs_inode_cache",
sizeof (struct cifsInodeInfo), sizeof (struct cifsInodeInfo),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
cifs_init_once, NULL); cifs_init_once, NULL);
if (cifs_inode_cachep == NULL) if (cifs_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -1821,7 +1821,8 @@ static int __init dquot_init(void) ...@@ -1821,7 +1821,8 @@ static int __init dquot_init(void)
dquot_cachep = kmem_cache_create("dquot", dquot_cachep = kmem_cache_create("dquot",
sizeof(struct dquot), sizeof(unsigned long) * 4, sizeof(struct dquot), sizeof(unsigned long) * 4,
SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD|SLAB_PANIC, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD|SLAB_PANIC),
NULL, NULL); NULL, NULL);
order = 0; order = 0;
......
...@@ -175,7 +175,8 @@ static int init_inodecache(void) ...@@ -175,7 +175,8 @@ static int init_inodecache(void)
{ {
ext2_inode_cachep = kmem_cache_create("ext2_inode_cache", ext2_inode_cachep = kmem_cache_create("ext2_inode_cache",
sizeof(struct ext2_inode_info), sizeof(struct ext2_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (ext2_inode_cachep == NULL) if (ext2_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -481,7 +481,8 @@ static int init_inodecache(void) ...@@ -481,7 +481,8 @@ static int init_inodecache(void)
{ {
ext3_inode_cachep = kmem_cache_create("ext3_inode_cache", ext3_inode_cachep = kmem_cache_create("ext3_inode_cache",
sizeof(struct ext3_inode_info), sizeof(struct ext3_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (ext3_inode_cachep == NULL) if (ext3_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -518,7 +518,8 @@ static int __init fat_init_inodecache(void) ...@@ -518,7 +518,8 @@ static int __init fat_init_inodecache(void)
{ {
fat_inode_cachep = kmem_cache_create("fat_inode_cache", fat_inode_cachep = kmem_cache_create("fat_inode_cache",
sizeof(struct msdos_inode_info), sizeof(struct msdos_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (fat_inode_cachep == NULL) if (fat_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -191,7 +191,8 @@ static int init_inodecache(void) ...@@ -191,7 +191,8 @@ static int init_inodecache(void)
{ {
hpfs_inode_cachep = kmem_cache_create("hpfs_inode_cache", hpfs_inode_cachep = kmem_cache_create("hpfs_inode_cache",
sizeof(struct hpfs_inode_info), sizeof(struct hpfs_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (hpfs_inode_cachep == NULL) if (hpfs_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -87,7 +87,8 @@ static int init_inodecache(void) ...@@ -87,7 +87,8 @@ static int init_inodecache(void)
{ {
isofs_inode_cachep = kmem_cache_create("isofs_inode_cache", isofs_inode_cachep = kmem_cache_create("isofs_inode_cache",
sizeof(struct iso_inode_info), sizeof(struct iso_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (isofs_inode_cachep == NULL) if (isofs_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -1812,14 +1812,16 @@ init_jffs_fs(void) ...@@ -1812,14 +1812,16 @@ init_jffs_fs(void)
} }
#endif #endif
fm_cache = kmem_cache_create("jffs_fm", sizeof(struct jffs_fm), fm_cache = kmem_cache_create("jffs_fm", sizeof(struct jffs_fm),
0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0,
SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD,
NULL, NULL); NULL, NULL);
if (!fm_cache) { if (!fm_cache) {
return -ENOMEM; return -ENOMEM;
} }
node_cache = kmem_cache_create("jffs_node",sizeof(struct jffs_node), node_cache = kmem_cache_create("jffs_node",sizeof(struct jffs_node),
0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0,
SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD,
NULL, NULL); NULL, NULL);
if (!node_cache) { if (!node_cache) {
kmem_cache_destroy(fm_cache); kmem_cache_destroy(fm_cache);
......
...@@ -331,7 +331,8 @@ static int __init init_jffs2_fs(void) ...@@ -331,7 +331,8 @@ static int __init init_jffs2_fs(void)
jffs2_inode_cachep = kmem_cache_create("jffs2_i", jffs2_inode_cachep = kmem_cache_create("jffs2_i",
sizeof(struct jffs2_inode_info), sizeof(struct jffs2_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
jffs2_i_init_once, NULL); jffs2_i_init_once, NULL);
if (!jffs2_inode_cachep) { if (!jffs2_inode_cachep) {
printk(KERN_ERR "JFFS2 error: Failed to initialise inode cache\n"); printk(KERN_ERR "JFFS2 error: Failed to initialise inode cache\n");
......
...@@ -664,7 +664,8 @@ static int __init init_jfs_fs(void) ...@@ -664,7 +664,8 @@ static int __init init_jfs_fs(void)
jfs_inode_cachep = jfs_inode_cachep =
kmem_cache_create("jfs_ip", sizeof(struct jfs_inode_info), 0, kmem_cache_create("jfs_ip", sizeof(struct jfs_inode_info), 0,
SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, init_once, NULL); SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD,
init_once, NULL);
if (jfs_inode_cachep == NULL) if (jfs_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -80,7 +80,8 @@ static int init_inodecache(void) ...@@ -80,7 +80,8 @@ static int init_inodecache(void)
{ {
minix_inode_cachep = kmem_cache_create("minix_inode_cache", minix_inode_cachep = kmem_cache_create("minix_inode_cache",
sizeof(struct minix_inode_info), sizeof(struct minix_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (minix_inode_cachep == NULL) if (minix_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -72,7 +72,8 @@ static int init_inodecache(void) ...@@ -72,7 +72,8 @@ static int init_inodecache(void)
{ {
ncp_inode_cachep = kmem_cache_create("ncp_inode_cache", ncp_inode_cachep = kmem_cache_create("ncp_inode_cache",
sizeof(struct ncp_inode_info), sizeof(struct ncp_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (ncp_inode_cachep == NULL) if (ncp_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -781,7 +781,8 @@ int nfs_init_directcache(void) ...@@ -781,7 +781,8 @@ int nfs_init_directcache(void)
{ {
nfs_direct_cachep = kmem_cache_create("nfs_direct_cache", nfs_direct_cachep = kmem_cache_create("nfs_direct_cache",
sizeof(struct nfs_direct_req), sizeof(struct nfs_direct_req),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
NULL, NULL); NULL, NULL);
if (nfs_direct_cachep == NULL) if (nfs_direct_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -2163,7 +2163,8 @@ static int nfs_init_inodecache(void) ...@@ -2163,7 +2163,8 @@ static int nfs_init_inodecache(void)
{ {
nfs_inode_cachep = kmem_cache_create("nfs_inode_cache", nfs_inode_cachep = kmem_cache_create("nfs_inode_cache",
sizeof(struct nfs_inode), sizeof(struct nfs_inode),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (nfs_inode_cachep == NULL) if (nfs_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -596,7 +596,8 @@ static int __init init_dlmfs_fs(void) ...@@ -596,7 +596,8 @@ static int __init init_dlmfs_fs(void)
dlmfs_inode_cache = kmem_cache_create("dlmfs_inode_cache", dlmfs_inode_cache = kmem_cache_create("dlmfs_inode_cache",
sizeof(struct dlmfs_inode_private), sizeof(struct dlmfs_inode_private),
0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
dlmfs_init_once, NULL); dlmfs_init_once, NULL);
if (!dlmfs_inode_cache) if (!dlmfs_inode_cache)
return -ENOMEM; return -ENOMEM;
......
...@@ -951,7 +951,9 @@ static int ocfs2_initialize_mem_caches(void) ...@@ -951,7 +951,9 @@ static int ocfs2_initialize_mem_caches(void)
{ {
ocfs2_inode_cachep = kmem_cache_create("ocfs2_inode_cache", ocfs2_inode_cachep = kmem_cache_create("ocfs2_inode_cache",
sizeof(struct ocfs2_inode_info), sizeof(struct ocfs2_inode_info),
0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0,
(SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
ocfs2_inode_init_once, NULL); ocfs2_inode_init_once, NULL);
if (!ocfs2_inode_cachep) if (!ocfs2_inode_cachep)
return -ENOMEM; return -ENOMEM;
......
...@@ -121,7 +121,8 @@ int __init proc_init_inodecache(void) ...@@ -121,7 +121,8 @@ int __init proc_init_inodecache(void)
{ {
proc_inode_cachep = kmem_cache_create("proc_inode_cache", proc_inode_cachep = kmem_cache_create("proc_inode_cache",
sizeof(struct proc_inode), sizeof(struct proc_inode),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (proc_inode_cachep == NULL) if (proc_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -546,7 +546,8 @@ static int init_inodecache(void) ...@@ -546,7 +546,8 @@ static int init_inodecache(void)
{ {
qnx4_inode_cachep = kmem_cache_create("qnx4_inode_cache", qnx4_inode_cachep = kmem_cache_create("qnx4_inode_cache",
sizeof(struct qnx4_inode_info), sizeof(struct qnx4_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (qnx4_inode_cachep == NULL) if (qnx4_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -521,7 +521,8 @@ static int init_inodecache(void) ...@@ -521,7 +521,8 @@ static int init_inodecache(void)
reiserfs_inode_cachep = kmem_cache_create("reiser_inode_cache", reiserfs_inode_cachep = kmem_cache_create("reiser_inode_cache",
sizeof(struct sizeof(struct
reiserfs_inode_info), reiserfs_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (reiserfs_inode_cachep == NULL) if (reiserfs_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -579,7 +579,8 @@ static int init_inodecache(void) ...@@ -579,7 +579,8 @@ static int init_inodecache(void)
{ {
romfs_inode_cachep = kmem_cache_create("romfs_inode_cache", romfs_inode_cachep = kmem_cache_create("romfs_inode_cache",
sizeof(struct romfs_inode_info), sizeof(struct romfs_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (romfs_inode_cachep == NULL) if (romfs_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -80,7 +80,8 @@ static int init_inodecache(void) ...@@ -80,7 +80,8 @@ static int init_inodecache(void)
{ {
smb_inode_cachep = kmem_cache_create("smb_inode_cache", smb_inode_cachep = kmem_cache_create("smb_inode_cache",
sizeof(struct smb_inode_info), sizeof(struct smb_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (smb_inode_cachep == NULL) if (smb_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -140,7 +140,8 @@ static int init_inodecache(void) ...@@ -140,7 +140,8 @@ static int init_inodecache(void)
{ {
udf_inode_cachep = kmem_cache_create("udf_inode_cache", udf_inode_cachep = kmem_cache_create("udf_inode_cache",
sizeof(struct udf_inode_info), sizeof(struct udf_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (udf_inode_cachep == NULL) if (udf_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -1184,7 +1184,8 @@ static int init_inodecache(void) ...@@ -1184,7 +1184,8 @@ static int init_inodecache(void)
{ {
ufs_inode_cachep = kmem_cache_create("ufs_inode_cache", ufs_inode_cachep = kmem_cache_create("ufs_inode_cache",
sizeof(struct ufs_inode_info), sizeof(struct ufs_inode_info),
0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (ufs_inode_cachep == NULL) if (ufs_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -319,7 +319,8 @@ static int init_inodecache(void) ...@@ -319,7 +319,8 @@ static int init_inodecache(void)
{ {
sock_inode_cachep = kmem_cache_create("sock_inode_cache", sock_inode_cachep = kmem_cache_create("sock_inode_cache",
sizeof(struct socket_alloc), sizeof(struct socket_alloc),
0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (sock_inode_cachep == NULL) if (sock_inode_cachep == NULL)
return -ENOMEM; return -ENOMEM;
......
...@@ -850,7 +850,8 @@ int register_rpc_pipefs(void) ...@@ -850,7 +850,8 @@ int register_rpc_pipefs(void)
{ {
rpc_inode_cachep = kmem_cache_create("rpc_inode_cache", rpc_inode_cachep = kmem_cache_create("rpc_inode_cache",
sizeof(struct rpc_inode), sizeof(struct rpc_inode),
0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD),
init_once, NULL); init_once, NULL);
if (!rpc_inode_cachep) if (!rpc_inode_cachep)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册