Skip to content

Commit

Permalink
fs: remove the unused mempages parameter
Browse files Browse the repository at this point in the history
Since the mempages parameter is actually not used, they should be removed.

Now there is only files_init use the mempages parameter,

 	files_init(mempages);

but I don't think the adaptation to mempages in files_init is really
useful; and if files_init also changed to the prototype void (*func)(void),
the wrapper vfs_caches_init would also not need the mempages parameter.

Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Denis Cheng authored and Linus Torvalds committed Oct 17, 2007
1 parent 1d99493 commit 74bf17c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions fs/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -2108,7 +2108,7 @@ static void __init dcache_init_early(void)
INIT_HLIST_HEAD(&dentry_hashtable[loop]);
}

static void __init dcache_init(unsigned long mempages)
static void __init dcache_init(void)
{
int loop;

Expand Down Expand Up @@ -2170,10 +2170,10 @@ void __init vfs_caches_init(unsigned long mempages)
filp_cachep = kmem_cache_create("filp", sizeof(struct file), 0,
SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);

dcache_init(mempages);
inode_init(mempages);
dcache_init();
inode_init();
files_init(mempages);
mnt_init(mempages);
mnt_init();
bdev_cache_init();
chrdev_init();
}
Expand Down
2 changes: 1 addition & 1 deletion fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ void __init inode_init_early(void)
INIT_HLIST_HEAD(&inode_hashtable[loop]);
}

void __init inode_init(unsigned long mempages)
void __init inode_init(void)
{
int loop;

Expand Down
2 changes: 1 addition & 1 deletion fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@ static void __init init_mount_tree(void)
set_fs_root(current->fs, ns->root, ns->root->mnt_root);
}

void __init mnt_init(unsigned long mempages)
void __init mnt_init(void)
{
struct list_head *d;
unsigned int nr_hash;
Expand Down
4 changes: 2 additions & 2 deletions include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ struct kstatfs;
struct vm_area_struct;
struct vfsmount;

extern void __init inode_init(unsigned long);
extern void __init inode_init(void);
extern void __init inode_init_early(void);
extern void __init mnt_init(unsigned long);
extern void __init mnt_init(void);
extern void __init files_init(unsigned long);

struct buffer_head;
Expand Down

0 comments on commit 74bf17c

Please sign in to comment.