diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-10-17 02:25:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:45 -0400 |
commit | 4ba9b9d0ba0a49d91fa6417c7510ee36f48cf957 (patch) | |
tree | 191b4f45f926e44b882b1e87a9a85dc12230b892 /fs/afs/super.c | |
parent | b811c202a0edadaac7242ab834fe7ba409978ae7 (diff) |
Slab API: remove useless ctor parameter and reorder parameters
Slab constructors currently have a flags parameter that is never used. And
the order of the arguments is opposite to other slab functions. The object
pointer is placed before the kmem_cache pointer.
Convert
ctor(void *object, struct kmem_cache *s, unsigned long flags)
to
ctor(struct kmem_cache *s, void *object)
throughout the kernel
[akpm@linux-foundation.org: coupla fixes]
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/afs/super.c')
-rw-r--r-- | fs/afs/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/afs/super.c b/fs/afs/super.c index b8808b40f82b..4b2558c42213 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c | |||
@@ -27,8 +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(void *foo, struct kmem_cache *cachep, | 30 | static void afs_i_init_once(struct kmem_cache *cachep, void *foo); |
31 | unsigned long flags); | ||
32 | static int afs_get_sb(struct file_system_type *fs_type, | 31 | static int afs_get_sb(struct file_system_type *fs_type, |
33 | int flags, const char *dev_name, | 32 | int flags, const char *dev_name, |
34 | void *data, struct vfsmount *mnt); | 33 | void *data, struct vfsmount *mnt); |
@@ -446,8 +445,7 @@ static void afs_put_super(struct super_block *sb) | |||
446 | /* | 445 | /* |
447 | * initialise an inode cache slab element prior to any use | 446 | * initialise an inode cache slab element prior to any use |
448 | */ | 447 | */ |
449 | static void afs_i_init_once(void *_vnode, struct kmem_cache *cachep, | 448 | static void afs_i_init_once(struct kmem_cache *cachep, void *_vnode) |
450 | unsigned long flags) | ||
451 | { | 449 | { |
452 | struct afs_vnode *vnode = _vnode; | 450 | struct afs_vnode *vnode = _vnode; |
453 | 451 | ||