diff options
Diffstat (limited to 'fs')
46 files changed, 48 insertions, 50 deletions
diff --git a/fs/adfs/super.c b/fs/adfs/super.c index 9e421eeb672b..26f3b43726bb 100644 --- a/fs/adfs/super.c +++ b/fs/adfs/super.c | |||
@@ -249,7 +249,7 @@ static void adfs_destroy_inode(struct inode *inode) | |||
249 | kmem_cache_free(adfs_inode_cachep, ADFS_I(inode)); | 249 | kmem_cache_free(adfs_inode_cachep, ADFS_I(inode)); |
250 | } | 250 | } |
251 | 251 | ||
252 | static void init_once(struct kmem_cache *cachep, void *foo) | 252 | static void init_once(void *foo) |
253 | { | 253 | { |
254 | struct adfs_inode_info *ei = (struct adfs_inode_info *) foo; | 254 | struct adfs_inode_info *ei = (struct adfs_inode_info *) foo; |
255 | 255 | ||
diff --git a/fs/affs/super.c b/fs/affs/super.c index 4e0309566406..3a89094f93d0 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
@@ -90,7 +90,7 @@ static void affs_destroy_inode(struct inode *inode) | |||
90 | kmem_cache_free(affs_inode_cachep, AFFS_I(inode)); | 90 | kmem_cache_free(affs_inode_cachep, AFFS_I(inode)); |
91 | } | 91 | } |
92 | 92 | ||
93 | static void init_once(struct kmem_cache *cachep, void *foo) | 93 | static void init_once(void *foo) |
94 | { | 94 | { |
95 | struct affs_inode_info *ei = (struct affs_inode_info *) foo; | 95 | struct affs_inode_info *ei = (struct affs_inode_info *) foo; |
96 | 96 | ||
diff --git a/fs/afs/super.c b/fs/afs/super.c index 7e3faeef6818..250d8c4d66e4 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #define AFS_FS_MAGIC 0x6B414653 /* 'kAFS' */ | 28 | #define AFS_FS_MAGIC 0x6B414653 /* 'kAFS' */ |
29 | 29 | ||
30 | static void afs_i_init_once(struct kmem_cache *cachep, void *foo); | 30 | static void afs_i_init_once(void *foo); |
31 | static int afs_get_sb(struct file_system_type *fs_type, | 31 | static int afs_get_sb(struct file_system_type *fs_type, |
32 | int flags, const char *dev_name, | 32 | int flags, const char *dev_name, |
33 | void *data, struct vfsmount *mnt); | 33 | void *data, struct vfsmount *mnt); |
@@ -449,7 +449,7 @@ static void afs_put_super(struct super_block *sb) | |||
449 | /* | 449 | /* |
450 | * initialise an inode cache slab element prior to any use | 450 | * initialise an inode cache slab element prior to any use |
451 | */ | 451 | */ |
452 | static void afs_i_init_once(struct kmem_cache *cachep, void *_vnode) | 452 | static void afs_i_init_once(void *_vnode) |
453 | { | 453 | { |
454 | struct afs_vnode *vnode = _vnode; | 454 | struct afs_vnode *vnode = _vnode; |
455 | 455 | ||
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index e8717de3bab3..02c6e62b72f8 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -289,7 +289,7 @@ befs_destroy_inode(struct inode *inode) | |||
289 | kmem_cache_free(befs_inode_cachep, BEFS_I(inode)); | 289 | kmem_cache_free(befs_inode_cachep, BEFS_I(inode)); |
290 | } | 290 | } |
291 | 291 | ||
292 | static void init_once(struct kmem_cache *cachep, void *foo) | 292 | static void init_once(void *foo) |
293 | { | 293 | { |
294 | struct befs_inode_info *bi = (struct befs_inode_info *) foo; | 294 | struct befs_inode_info *bi = (struct befs_inode_info *) foo; |
295 | 295 | ||
diff --git a/fs/bfs/inode.c b/fs/bfs/inode.c index 053e690ec9ed..0ed57b5ee012 100644 --- a/fs/bfs/inode.c +++ b/fs/bfs/inode.c | |||
@@ -264,7 +264,7 @@ static void bfs_destroy_inode(struct inode *inode) | |||
264 | kmem_cache_free(bfs_inode_cachep, BFS_I(inode)); | 264 | kmem_cache_free(bfs_inode_cachep, BFS_I(inode)); |
265 | } | 265 | } |
266 | 266 | ||
267 | static void init_once(struct kmem_cache *cachep, void *foo) | 267 | static void init_once(void *foo) |
268 | { | 268 | { |
269 | struct bfs_inode_info *bi = foo; | 269 | struct bfs_inode_info *bi = foo; |
270 | 270 | ||
diff --git a/fs/block_dev.c b/fs/block_dev.c index 10d8a0aa871a..dcf37cada369 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -271,7 +271,7 @@ static void bdev_destroy_inode(struct inode *inode) | |||
271 | kmem_cache_free(bdev_cachep, bdi); | 271 | kmem_cache_free(bdev_cachep, bdi); |
272 | } | 272 | } |
273 | 273 | ||
274 | static void init_once(struct kmem_cache * cachep, void *foo) | 274 | static void init_once(void *foo) |
275 | { | 275 | { |
276 | struct bdev_inode *ei = (struct bdev_inode *) foo; | 276 | struct bdev_inode *ei = (struct bdev_inode *) foo; |
277 | struct block_device *bdev = &ei->bdev; | 277 | struct block_device *bdev = &ei->bdev; |
diff --git a/fs/buffer.c b/fs/buffer.c index 109b261192d9..5fd497cdd6f3 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -3272,7 +3272,7 @@ int bh_submit_read(struct buffer_head *bh) | |||
3272 | EXPORT_SYMBOL(bh_submit_read); | 3272 | EXPORT_SYMBOL(bh_submit_read); |
3273 | 3273 | ||
3274 | static void | 3274 | static void |
3275 | init_buffer_head(struct kmem_cache *cachep, void *data) | 3275 | init_buffer_head(void *data) |
3276 | { | 3276 | { |
3277 | struct buffer_head *bh = data; | 3277 | struct buffer_head *bh = data; |
3278 | 3278 | ||
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 22857c639df5..fe5f6809cba6 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -766,7 +766,7 @@ const struct file_operations cifs_dir_ops = { | |||
766 | }; | 766 | }; |
767 | 767 | ||
768 | static void | 768 | static void |
769 | cifs_init_once(struct kmem_cache *cachep, void *inode) | 769 | cifs_init_once(void *inode) |
770 | { | 770 | { |
771 | struct cifsInodeInfo *cifsi = inode; | 771 | struct cifsInodeInfo *cifsi = inode; |
772 | 772 | ||
diff --git a/fs/coda/inode.c b/fs/coda/inode.c index 2f58dfc70083..830f51abb971 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c | |||
@@ -58,7 +58,7 @@ static void coda_destroy_inode(struct inode *inode) | |||
58 | kmem_cache_free(coda_inode_cachep, ITOC(inode)); | 58 | kmem_cache_free(coda_inode_cachep, ITOC(inode)); |
59 | } | 59 | } |
60 | 60 | ||
61 | static void init_once(struct kmem_cache * cachep, void *foo) | 61 | static void init_once(void *foo) |
62 | { | 62 | { |
63 | struct coda_inode_info *ei = (struct coda_inode_info *) foo; | 63 | struct coda_inode_info *ei = (struct coda_inode_info *) foo; |
64 | 64 | ||
diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c index 6f403cfba14f..448dfd597b5f 100644 --- a/fs/ecryptfs/main.c +++ b/fs/ecryptfs/main.c | |||
@@ -578,7 +578,7 @@ static struct file_system_type ecryptfs_fs_type = { | |||
578 | * Initializes the ecryptfs_inode_info_cache when it is created | 578 | * Initializes the ecryptfs_inode_info_cache when it is created |
579 | */ | 579 | */ |
580 | static void | 580 | static void |
581 | inode_info_init_once(struct kmem_cache *cachep, void *vptr) | 581 | inode_info_init_once(void *vptr) |
582 | { | 582 | { |
583 | struct ecryptfs_inode_info *ei = (struct ecryptfs_inode_info *)vptr; | 583 | struct ecryptfs_inode_info *ei = (struct ecryptfs_inode_info *)vptr; |
584 | 584 | ||
@@ -589,7 +589,7 @@ static struct ecryptfs_cache_info { | |||
589 | struct kmem_cache **cache; | 589 | struct kmem_cache **cache; |
590 | const char *name; | 590 | const char *name; |
591 | size_t size; | 591 | size_t size; |
592 | void (*ctor)(struct kmem_cache *cache, void *obj); | 592 | void (*ctor)(void *obj); |
593 | } ecryptfs_cache_infos[] = { | 593 | } ecryptfs_cache_infos[] = { |
594 | { | 594 | { |
595 | .cache = &ecryptfs_auth_tok_list_item_cache, | 595 | .cache = &ecryptfs_auth_tok_list_item_cache, |
diff --git a/fs/efs/super.c b/fs/efs/super.c index d733531b55e2..567b134fa1f1 100644 --- a/fs/efs/super.c +++ b/fs/efs/super.c | |||
@@ -70,7 +70,7 @@ static void efs_destroy_inode(struct inode *inode) | |||
70 | kmem_cache_free(efs_inode_cachep, INODE_INFO(inode)); | 70 | kmem_cache_free(efs_inode_cachep, INODE_INFO(inode)); |
71 | } | 71 | } |
72 | 72 | ||
73 | static void init_once(struct kmem_cache *cachep, void *foo) | 73 | static void init_once(void *foo) |
74 | { | 74 | { |
75 | struct efs_inode_info *ei = (struct efs_inode_info *) foo; | 75 | struct efs_inode_info *ei = (struct efs_inode_info *) foo; |
76 | 76 | ||
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 31308a3b0b8b..fd88c7b43e66 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -159,7 +159,7 @@ static void ext2_destroy_inode(struct inode *inode) | |||
159 | kmem_cache_free(ext2_inode_cachep, EXT2_I(inode)); | 159 | kmem_cache_free(ext2_inode_cachep, EXT2_I(inode)); |
160 | } | 160 | } |
161 | 161 | ||
162 | static void init_once(struct kmem_cache * cachep, void *foo) | 162 | static void init_once(void *foo) |
163 | { | 163 | { |
164 | struct ext2_inode_info *ei = (struct ext2_inode_info *) foo; | 164 | struct ext2_inode_info *ei = (struct ext2_inode_info *) foo; |
165 | 165 | ||
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index 615788c6843a..8ddced384674 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -472,7 +472,7 @@ static void ext3_destroy_inode(struct inode *inode) | |||
472 | kmem_cache_free(ext3_inode_cachep, EXT3_I(inode)); | 472 | kmem_cache_free(ext3_inode_cachep, EXT3_I(inode)); |
473 | } | 473 | } |
474 | 474 | ||
475 | static void init_once(struct kmem_cache * cachep, void *foo) | 475 | static void init_once(void *foo) |
476 | { | 476 | { |
477 | struct ext3_inode_info *ei = (struct ext3_inode_info *) foo; | 477 | struct ext3_inode_info *ei = (struct ext3_inode_info *) foo; |
478 | 478 | ||
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 1cb371dcd609..b5479b1dff14 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -595,7 +595,7 @@ static void ext4_destroy_inode(struct inode *inode) | |||
595 | kmem_cache_free(ext4_inode_cachep, EXT4_I(inode)); | 595 | kmem_cache_free(ext4_inode_cachep, EXT4_I(inode)); |
596 | } | 596 | } |
597 | 597 | ||
598 | static void init_once(struct kmem_cache *cachep, void *foo) | 598 | static void init_once(void *foo) |
599 | { | 599 | { |
600 | struct ext4_inode_info *ei = (struct ext4_inode_info *) foo; | 600 | struct ext4_inode_info *ei = (struct ext4_inode_info *) foo; |
601 | 601 | ||
diff --git a/fs/fat/cache.c b/fs/fat/cache.c index 3a9ecac8d61f..3222f51c41cf 100644 --- a/fs/fat/cache.c +++ b/fs/fat/cache.c | |||
@@ -36,7 +36,7 @@ static inline int fat_max_cache(struct inode *inode) | |||
36 | 36 | ||
37 | static struct kmem_cache *fat_cache_cachep; | 37 | static struct kmem_cache *fat_cache_cachep; |
38 | 38 | ||
39 | static void init_once(struct kmem_cache *cachep, void *foo) | 39 | static void init_once(void *foo) |
40 | { | 40 | { |
41 | struct fat_cache *cache = (struct fat_cache *)foo; | 41 | struct fat_cache *cache = (struct fat_cache *)foo; |
42 | 42 | ||
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 23676f9d79ce..6d266d793e2c 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
@@ -498,7 +498,7 @@ static void fat_destroy_inode(struct inode *inode) | |||
498 | kmem_cache_free(fat_inode_cachep, MSDOS_I(inode)); | 498 | kmem_cache_free(fat_inode_cachep, MSDOS_I(inode)); |
499 | } | 499 | } |
500 | 500 | ||
501 | static void init_once(struct kmem_cache *cachep, void *foo) | 501 | static void init_once(void *foo) |
502 | { | 502 | { |
503 | struct msdos_inode_info *ei = (struct msdos_inode_info *)foo; | 503 | struct msdos_inode_info *ei = (struct msdos_inode_info *)foo; |
504 | 504 | ||
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 7d2f7d6e22e2..d2249f174e20 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -956,7 +956,7 @@ static inline void unregister_fuseblk(void) | |||
956 | } | 956 | } |
957 | #endif | 957 | #endif |
958 | 958 | ||
959 | static void fuse_inode_init_once(struct kmem_cache *cachep, void *foo) | 959 | static void fuse_inode_init_once(void *foo) |
960 | { | 960 | { |
961 | struct inode * inode = foo; | 961 | struct inode * inode = foo; |
962 | 962 | ||
diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c index bcc668d0fadd..bb2cc303ac29 100644 --- a/fs/gfs2/main.c +++ b/fs/gfs2/main.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include "util.h" | 24 | #include "util.h" |
25 | #include "glock.h" | 25 | #include "glock.h" |
26 | 26 | ||
27 | static void gfs2_init_inode_once(struct kmem_cache *cachep, void *foo) | 27 | static void gfs2_init_inode_once(void *foo) |
28 | { | 28 | { |
29 | struct gfs2_inode *ip = foo; | 29 | struct gfs2_inode *ip = foo; |
30 | 30 | ||
@@ -33,7 +33,7 @@ static void gfs2_init_inode_once(struct kmem_cache *cachep, void *foo) | |||
33 | ip->i_alloc = NULL; | 33 | ip->i_alloc = NULL; |
34 | } | 34 | } |
35 | 35 | ||
36 | static void gfs2_init_glock_once(struct kmem_cache *cachep, void *foo) | 36 | static void gfs2_init_glock_once(void *foo) |
37 | { | 37 | { |
38 | struct gfs2_glock *gl = foo; | 38 | struct gfs2_glock *gl = foo; |
39 | 39 | ||
diff --git a/fs/hfs/super.c b/fs/hfs/super.c index ac2ec5ef66e4..4abb1047c689 100644 --- a/fs/hfs/super.c +++ b/fs/hfs/super.c | |||
@@ -432,7 +432,7 @@ static struct file_system_type hfs_fs_type = { | |||
432 | .fs_flags = FS_REQUIRES_DEV, | 432 | .fs_flags = FS_REQUIRES_DEV, |
433 | }; | 433 | }; |
434 | 434 | ||
435 | static void hfs_init_once(struct kmem_cache *cachep, void *p) | 435 | static void hfs_init_once(void *p) |
436 | { | 436 | { |
437 | struct hfs_inode_info *i = p; | 437 | struct hfs_inode_info *i = p; |
438 | 438 | ||
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 3859118531c7..e834e578c93f 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c | |||
@@ -485,7 +485,7 @@ static struct file_system_type hfsplus_fs_type = { | |||
485 | .fs_flags = FS_REQUIRES_DEV, | 485 | .fs_flags = FS_REQUIRES_DEV, |
486 | }; | 486 | }; |
487 | 487 | ||
488 | static void hfsplus_init_once(struct kmem_cache *cachep, void *p) | 488 | static void hfsplus_init_once(void *p) |
489 | { | 489 | { |
490 | struct hfsplus_inode_info *i = p; | 490 | struct hfsplus_inode_info *i = p; |
491 | 491 | ||
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index f63a699ec659..b8ae9c90ada0 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -173,7 +173,7 @@ static void hpfs_destroy_inode(struct inode *inode) | |||
173 | kmem_cache_free(hpfs_inode_cachep, hpfs_i(inode)); | 173 | kmem_cache_free(hpfs_inode_cachep, hpfs_i(inode)); |
174 | } | 174 | } |
175 | 175 | ||
176 | static void init_once(struct kmem_cache *cachep, void *foo) | 176 | static void init_once(void *foo) |
177 | { | 177 | { |
178 | struct hpfs_inode_info *ei = (struct hpfs_inode_info *) foo; | 178 | struct hpfs_inode_info *ei = (struct hpfs_inode_info *) foo; |
179 | 179 | ||
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index dbd01d262ca4..3f58923fb39b 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
@@ -705,7 +705,7 @@ static const struct address_space_operations hugetlbfs_aops = { | |||
705 | }; | 705 | }; |
706 | 706 | ||
707 | 707 | ||
708 | static void init_once(struct kmem_cache *cachep, void *foo) | 708 | static void init_once(void *foo) |
709 | { | 709 | { |
710 | struct hugetlbfs_inode_info *ei = (struct hugetlbfs_inode_info *)foo; | 710 | struct hugetlbfs_inode_info *ei = (struct hugetlbfs_inode_info *)foo; |
711 | 711 | ||
diff --git a/fs/inode.c b/fs/inode.c index 35b6414522ea..b6726f644530 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -224,7 +224,7 @@ void inode_init_once(struct inode *inode) | |||
224 | 224 | ||
225 | EXPORT_SYMBOL(inode_init_once); | 225 | EXPORT_SYMBOL(inode_init_once); |
226 | 226 | ||
227 | static void init_once(struct kmem_cache * cachep, void *foo) | 227 | static void init_once(void *foo) |
228 | { | 228 | { |
229 | struct inode * inode = (struct inode *) foo; | 229 | struct inode * inode = (struct inode *) foo; |
230 | 230 | ||
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index 044a254d526b..26948a6033b6 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c | |||
@@ -73,7 +73,7 @@ static void isofs_destroy_inode(struct inode *inode) | |||
73 | kmem_cache_free(isofs_inode_cachep, ISOFS_I(inode)); | 73 | kmem_cache_free(isofs_inode_cachep, ISOFS_I(inode)); |
74 | } | 74 | } |
75 | 75 | ||
76 | static void init_once(struct kmem_cache *cachep, void *foo) | 76 | static void init_once(void *foo) |
77 | { | 77 | { |
78 | struct iso_inode_info *ei = foo; | 78 | struct iso_inode_info *ei = foo; |
79 | 79 | ||
diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index 7da69eae49e4..efd401257ed9 100644 --- a/fs/jffs2/super.c +++ b/fs/jffs2/super.c | |||
@@ -44,7 +44,7 @@ static void jffs2_destroy_inode(struct inode *inode) | |||
44 | kmem_cache_free(jffs2_inode_cachep, JFFS2_INODE_INFO(inode)); | 44 | kmem_cache_free(jffs2_inode_cachep, JFFS2_INODE_INFO(inode)); |
45 | } | 45 | } |
46 | 46 | ||
47 | static void jffs2_i_init_once(struct kmem_cache *cachep, void *foo) | 47 | static void jffs2_i_init_once(void *foo) |
48 | { | 48 | { |
49 | struct jffs2_inode_info *f = foo; | 49 | struct jffs2_inode_info *f = foo; |
50 | 50 | ||
diff --git a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapage.c index 854ff0ec574f..c350057087dd 100644 --- a/fs/jfs/jfs_metapage.c +++ b/fs/jfs/jfs_metapage.c | |||
@@ -182,7 +182,7 @@ static inline void remove_metapage(struct page *page, struct metapage *mp) | |||
182 | 182 | ||
183 | #endif | 183 | #endif |
184 | 184 | ||
185 | static void init_once(struct kmem_cache *cachep, void *foo) | 185 | static void init_once(void *foo) |
186 | { | 186 | { |
187 | struct metapage *mp = (struct metapage *)foo; | 187 | struct metapage *mp = (struct metapage *)foo; |
188 | 188 | ||
diff --git a/fs/jfs/super.c b/fs/jfs/super.c index 359c091d8965..3630718be395 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c | |||
@@ -760,7 +760,7 @@ static struct file_system_type jfs_fs_type = { | |||
760 | .fs_flags = FS_REQUIRES_DEV, | 760 | .fs_flags = FS_REQUIRES_DEV, |
761 | }; | 761 | }; |
762 | 762 | ||
763 | static void init_once(struct kmem_cache *cachep, void *foo) | 763 | static void init_once(void *foo) |
764 | { | 764 | { |
765 | struct jfs_inode_info *jfs_ip = (struct jfs_inode_info *) foo; | 765 | struct jfs_inode_info *jfs_ip = (struct jfs_inode_info *) foo; |
766 | 766 | ||
diff --git a/fs/locks.c b/fs/locks.c index 01490300f7cb..5eb259e3cd38 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -201,7 +201,7 @@ EXPORT_SYMBOL(locks_init_lock); | |||
201 | * Initialises the fields of the file lock which are invariant for | 201 | * Initialises the fields of the file lock which are invariant for |
202 | * free file_locks. | 202 | * free file_locks. |
203 | */ | 203 | */ |
204 | static void init_once(struct kmem_cache *cache, void *foo) | 204 | static void init_once(void *foo) |
205 | { | 205 | { |
206 | struct file_lock *lock = (struct file_lock *) foo; | 206 | struct file_lock *lock = (struct file_lock *) foo; |
207 | 207 | ||
diff --git a/fs/minix/inode.c b/fs/minix/inode.c index 523d73713418..d1d1eb84679d 100644 --- a/fs/minix/inode.c +++ b/fs/minix/inode.c | |||
@@ -68,7 +68,7 @@ static void minix_destroy_inode(struct inode *inode) | |||
68 | kmem_cache_free(minix_inode_cachep, minix_i(inode)); | 68 | kmem_cache_free(minix_inode_cachep, minix_i(inode)); |
69 | } | 69 | } |
70 | 70 | ||
71 | static void init_once(struct kmem_cache * cachep, void *foo) | 71 | static void init_once(void *foo) |
72 | { | 72 | { |
73 | struct minix_inode_info *ei = (struct minix_inode_info *) foo; | 73 | struct minix_inode_info *ei = (struct minix_inode_info *) foo; |
74 | 74 | ||
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index 2e5ab1204dec..d642f0e5b365 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c | |||
@@ -64,7 +64,7 @@ static void ncp_destroy_inode(struct inode *inode) | |||
64 | kmem_cache_free(ncp_inode_cachep, NCP_FINFO(inode)); | 64 | kmem_cache_free(ncp_inode_cachep, NCP_FINFO(inode)); |
65 | } | 65 | } |
66 | 66 | ||
67 | static void init_once(struct kmem_cache *cachep, void *foo) | 67 | static void init_once(void *foo) |
68 | { | 68 | { |
69 | struct ncp_inode_info *ei = (struct ncp_inode_info *) foo; | 69 | struct ncp_inode_info *ei = (struct ncp_inode_info *) foo; |
70 | 70 | ||
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index df23f987da6b..52daefa2f521 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -1242,7 +1242,7 @@ static inline void nfs4_init_once(struct nfs_inode *nfsi) | |||
1242 | #endif | 1242 | #endif |
1243 | } | 1243 | } |
1244 | 1244 | ||
1245 | static void init_once(struct kmem_cache * cachep, void *foo) | 1245 | static void init_once(void *foo) |
1246 | { | 1246 | { |
1247 | struct nfs_inode *nfsi = (struct nfs_inode *) foo; | 1247 | struct nfs_inode *nfsi = (struct nfs_inode *) foo; |
1248 | 1248 | ||
diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c index 3e76f3b216bc..4a46743b5077 100644 --- a/fs/ntfs/super.c +++ b/fs/ntfs/super.c | |||
@@ -3080,7 +3080,7 @@ struct kmem_cache *ntfs_inode_cache; | |||
3080 | struct kmem_cache *ntfs_big_inode_cache; | 3080 | struct kmem_cache *ntfs_big_inode_cache; |
3081 | 3081 | ||
3082 | /* Init once constructor for the inode slab cache. */ | 3082 | /* Init once constructor for the inode slab cache. */ |
3083 | static void ntfs_big_inode_init_once(struct kmem_cache *cachep, void *foo) | 3083 | static void ntfs_big_inode_init_once(void *foo) |
3084 | { | 3084 | { |
3085 | ntfs_inode *ni = (ntfs_inode *)foo; | 3085 | ntfs_inode *ni = (ntfs_inode *)foo; |
3086 | 3086 | ||
diff --git a/fs/ocfs2/dlm/dlmfs.c b/fs/ocfs2/dlm/dlmfs.c index e48aba698b77..533a789c3ef8 100644 --- a/fs/ocfs2/dlm/dlmfs.c +++ b/fs/ocfs2/dlm/dlmfs.c | |||
@@ -267,8 +267,7 @@ static ssize_t dlmfs_file_write(struct file *filp, | |||
267 | return writelen; | 267 | return writelen; |
268 | } | 268 | } |
269 | 269 | ||
270 | static void dlmfs_init_once(struct kmem_cache *cachep, | 270 | static void dlmfs_init_once(void *foo) |
271 | void *foo) | ||
272 | { | 271 | { |
273 | struct dlmfs_inode_private *ip = | 272 | struct dlmfs_inode_private *ip = |
274 | (struct dlmfs_inode_private *) foo; | 273 | (struct dlmfs_inode_private *) foo; |
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index ccecfe5094fa..2560b33889aa 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -1118,7 +1118,7 @@ bail: | |||
1118 | return status; | 1118 | return status; |
1119 | } | 1119 | } |
1120 | 1120 | ||
1121 | static void ocfs2_inode_init_once(struct kmem_cache *cachep, void *data) | 1121 | static void ocfs2_inode_init_once(void *data) |
1122 | { | 1122 | { |
1123 | struct ocfs2_inode_info *oi = data; | 1123 | struct ocfs2_inode_info *oi = data; |
1124 | 1124 | ||
diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c index d17b4fd204e1..9f5b054f06b9 100644 --- a/fs/openpromfs/inode.c +++ b/fs/openpromfs/inode.c | |||
@@ -430,7 +430,7 @@ static struct file_system_type openprom_fs_type = { | |||
430 | .kill_sb = kill_anon_super, | 430 | .kill_sb = kill_anon_super, |
431 | }; | 431 | }; |
432 | 432 | ||
433 | static void op_inode_init_once(struct kmem_cache * cachep, void *data) | 433 | static void op_inode_init_once(void *data) |
434 | { | 434 | { |
435 | struct op_inode_info *oi = (struct op_inode_info *) data; | 435 | struct op_inode_info *oi = (struct op_inode_info *) data; |
436 | 436 | ||
diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 02eca2ed9dd7..b37f25dc45a5 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c | |||
@@ -94,7 +94,7 @@ static void proc_destroy_inode(struct inode *inode) | |||
94 | kmem_cache_free(proc_inode_cachep, PROC_I(inode)); | 94 | kmem_cache_free(proc_inode_cachep, PROC_I(inode)); |
95 | } | 95 | } |
96 | 96 | ||
97 | static void init_once(struct kmem_cache * cachep, void *foo) | 97 | static void init_once(void *foo) |
98 | { | 98 | { |
99 | struct proc_inode *ei = (struct proc_inode *) foo; | 99 | struct proc_inode *ei = (struct proc_inode *) foo; |
100 | 100 | ||
diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c index b31ab78052b3..2aad1044b84c 100644 --- a/fs/qnx4/inode.c +++ b/fs/qnx4/inode.c | |||
@@ -553,7 +553,7 @@ static void qnx4_destroy_inode(struct inode *inode) | |||
553 | kmem_cache_free(qnx4_inode_cachep, qnx4_i(inode)); | 553 | kmem_cache_free(qnx4_inode_cachep, qnx4_i(inode)); |
554 | } | 554 | } |
555 | 555 | ||
556 | static void init_once(struct kmem_cache *cachep, void *foo) | 556 | static void init_once(void *foo) |
557 | { | 557 | { |
558 | struct qnx4_inode_info *ei = (struct qnx4_inode_info *) foo; | 558 | struct qnx4_inode_info *ei = (struct qnx4_inode_info *) foo; |
559 | 559 | ||
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index 2ec748ba0bd3..879e54d35c2d 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c | |||
@@ -521,7 +521,7 @@ static void reiserfs_destroy_inode(struct inode *inode) | |||
521 | kmem_cache_free(reiserfs_inode_cachep, REISERFS_I(inode)); | 521 | kmem_cache_free(reiserfs_inode_cachep, REISERFS_I(inode)); |
522 | } | 522 | } |
523 | 523 | ||
524 | static void init_once(struct kmem_cache * cachep, void *foo) | 524 | static void init_once(void *foo) |
525 | { | 525 | { |
526 | struct reiserfs_inode_info *ei = (struct reiserfs_inode_info *)foo; | 526 | struct reiserfs_inode_info *ei = (struct reiserfs_inode_info *)foo; |
527 | 527 | ||
diff --git a/fs/romfs/inode.c b/fs/romfs/inode.c index 3f13d491c7c7..8e51a2aaa977 100644 --- a/fs/romfs/inode.c +++ b/fs/romfs/inode.c | |||
@@ -577,7 +577,7 @@ static void romfs_destroy_inode(struct inode *inode) | |||
577 | kmem_cache_free(romfs_inode_cachep, ROMFS_I(inode)); | 577 | kmem_cache_free(romfs_inode_cachep, ROMFS_I(inode)); |
578 | } | 578 | } |
579 | 579 | ||
580 | static void init_once(struct kmem_cache *cachep, void *foo) | 580 | static void init_once(void *foo) |
581 | { | 581 | { |
582 | struct romfs_inode_info *ei = foo; | 582 | struct romfs_inode_info *ei = foo; |
583 | 583 | ||
diff --git a/fs/smbfs/inode.c b/fs/smbfs/inode.c index 376ef3ee6ed7..3528f40ffb0f 100644 --- a/fs/smbfs/inode.c +++ b/fs/smbfs/inode.c | |||
@@ -67,7 +67,7 @@ static void smb_destroy_inode(struct inode *inode) | |||
67 | kmem_cache_free(smb_inode_cachep, SMB_I(inode)); | 67 | kmem_cache_free(smb_inode_cachep, SMB_I(inode)); |
68 | } | 68 | } |
69 | 69 | ||
70 | static void init_once(struct kmem_cache *cachep, void *foo) | 70 | static void init_once(void *foo) |
71 | { | 71 | { |
72 | struct smb_inode_info *ei = (struct smb_inode_info *) foo; | 72 | struct smb_inode_info *ei = (struct smb_inode_info *) foo; |
73 | 73 | ||
diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c index c5d60de0658f..df0d435baa48 100644 --- a/fs/sysv/inode.c +++ b/fs/sysv/inode.c | |||
@@ -326,7 +326,7 @@ static void sysv_destroy_inode(struct inode *inode) | |||
326 | kmem_cache_free(sysv_inode_cachep, SYSV_I(inode)); | 326 | kmem_cache_free(sysv_inode_cachep, SYSV_I(inode)); |
327 | } | 327 | } |
328 | 328 | ||
329 | static void init_once(struct kmem_cache *cachep, void *p) | 329 | static void init_once(void *p) |
330 | { | 330 | { |
331 | struct sysv_inode_info *si = (struct sysv_inode_info *)p; | 331 | struct sysv_inode_info *si = (struct sysv_inode_info *)p; |
332 | 332 | ||
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 00eb9c68ad03..ca1e2d4e03cc 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c | |||
@@ -1841,7 +1841,7 @@ static struct file_system_type ubifs_fs_type = { | |||
1841 | /* | 1841 | /* |
1842 | * Inode slab cache constructor. | 1842 | * Inode slab cache constructor. |
1843 | */ | 1843 | */ |
1844 | static void inode_slab_ctor(struct kmem_cache *cachep, void *obj) | 1844 | static void inode_slab_ctor(void *obj) |
1845 | { | 1845 | { |
1846 | struct ubifs_inode *ui = obj; | 1846 | struct ubifs_inode *ui = obj; |
1847 | inode_init_once(&ui->vfs_inode); | 1847 | inode_init_once(&ui->vfs_inode); |
diff --git a/fs/udf/super.c b/fs/udf/super.c index 44cc702f96cc..5698bbf83bbf 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -148,7 +148,7 @@ static void udf_destroy_inode(struct inode *inode) | |||
148 | kmem_cache_free(udf_inode_cachep, UDF_I(inode)); | 148 | kmem_cache_free(udf_inode_cachep, UDF_I(inode)); |
149 | } | 149 | } |
150 | 150 | ||
151 | static void init_once(struct kmem_cache *cachep, void *foo) | 151 | static void init_once(void *foo) |
152 | { | 152 | { |
153 | struct udf_inode_info *ei = (struct udf_inode_info *)foo; | 153 | struct udf_inode_info *ei = (struct udf_inode_info *)foo; |
154 | 154 | ||
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 227c9d700040..3e30e40aa24d 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -1302,7 +1302,7 @@ static void ufs_destroy_inode(struct inode *inode) | |||
1302 | kmem_cache_free(ufs_inode_cachep, UFS_I(inode)); | 1302 | kmem_cache_free(ufs_inode_cachep, UFS_I(inode)); |
1303 | } | 1303 | } |
1304 | 1304 | ||
1305 | static void init_once(struct kmem_cache * cachep, void *foo) | 1305 | static void init_once(void *foo) |
1306 | { | 1306 | { |
1307 | struct ufs_inode_info *ei = (struct ufs_inode_info *) foo; | 1307 | struct ufs_inode_info *ei = (struct ufs_inode_info *) foo; |
1308 | 1308 | ||
diff --git a/fs/xfs/linux-2.6/kmem.h b/fs/xfs/linux-2.6/kmem.h index 5e9564902976..a20683cf74dd 100644 --- a/fs/xfs/linux-2.6/kmem.h +++ b/fs/xfs/linux-2.6/kmem.h | |||
@@ -79,7 +79,7 @@ kmem_zone_init(int size, char *zone_name) | |||
79 | 79 | ||
80 | static inline kmem_zone_t * | 80 | static inline kmem_zone_t * |
81 | kmem_zone_init_flags(int size, char *zone_name, unsigned long flags, | 81 | kmem_zone_init_flags(int size, char *zone_name, unsigned long flags, |
82 | void (*construct)(kmem_zone_t *, void *)) | 82 | void (*construct)(void *)) |
83 | { | 83 | { |
84 | return kmem_cache_create(zone_name, size, 0, flags, construct); | 84 | return kmem_cache_create(zone_name, size, 0, flags, construct); |
85 | } | 85 | } |
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 742b2c7852c1..943381284e2e 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -843,7 +843,6 @@ xfs_fs_destroy_inode( | |||
843 | 843 | ||
844 | STATIC void | 844 | STATIC void |
845 | xfs_fs_inode_init_once( | 845 | xfs_fs_inode_init_once( |
846 | kmem_zone_t *zonep, | ||
847 | void *vnode) | 846 | void *vnode) |
848 | { | 847 | { |
849 | inode_init_once(vn_to_inode((bhv_vnode_t *)vnode)); | 848 | inode_init_once(vn_to_inode((bhv_vnode_t *)vnode)); |