aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2007-10-17 02:26:30 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:49 -0400
commit74bf17cffc32511c7c6d70fe7f376b92662e186e (patch)
treee770b056d4a83f847a04fc92e119aa607ec0edaf
parent1d99493b3a68e40e56459ea3565d4402fb6e5f3a (diff)
fs: remove the unused mempages parameter
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>
-rw-r--r--fs/dcache.c8
-rw-r--r--fs/inode.c2
-rw-r--r--fs/namespace.c2
-rw-r--r--include/linux/fs.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 7da0cf50873e..920c87720385 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -2108,7 +2108,7 @@ static void __init dcache_init_early(void)
2108 INIT_HLIST_HEAD(&dentry_hashtable[loop]); 2108 INIT_HLIST_HEAD(&dentry_hashtable[loop]);
2109} 2109}
2110 2110
2111static void __init dcache_init(unsigned long mempages) 2111static void __init dcache_init(void)
2112{ 2112{
2113 int loop; 2113 int loop;
2114 2114
@@ -2170,10 +2170,10 @@ void __init vfs_caches_init(unsigned long mempages)
2170 filp_cachep = kmem_cache_create("filp", sizeof(struct file), 0, 2170 filp_cachep = kmem_cache_create("filp", sizeof(struct file), 0,
2171 SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL); 2171 SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
2172 2172
2173 dcache_init(mempages); 2173 dcache_init();
2174 inode_init(mempages); 2174 inode_init();
2175 files_init(mempages); 2175 files_init(mempages);
2176 mnt_init(mempages); 2176 mnt_init();
2177 bdev_cache_init(); 2177 bdev_cache_init();
2178 chrdev_init(); 2178 chrdev_init();
2179} 2179}
diff --git a/fs/inode.c b/fs/inode.c
index ee93b3e67977..c6165771e00e 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -1396,7 +1396,7 @@ void __init inode_init_early(void)
1396 INIT_HLIST_HEAD(&inode_hashtable[loop]); 1396 INIT_HLIST_HEAD(&inode_hashtable[loop]);
1397} 1397}
1398 1398
1399void __init inode_init(unsigned long mempages) 1399void __init inode_init(void)
1400{ 1400{
1401 int loop; 1401 int loop;
1402 1402
diff --git a/fs/namespace.c b/fs/namespace.c
index ddbda13c2d31..07daa7972591 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1791,7 +1791,7 @@ static void __init init_mount_tree(void)
1791 set_fs_root(current->fs, ns->root, ns->root->mnt_root); 1791 set_fs_root(current->fs, ns->root, ns->root->mnt_root);
1792} 1792}
1793 1793
1794void __init mnt_init(unsigned long mempages) 1794void __init mnt_init(void)
1795{ 1795{
1796 struct list_head *d; 1796 struct list_head *d;
1797 unsigned int nr_hash; 1797 unsigned int nr_hash;
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 8b3580d0664e..73f0bdbe436a 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -300,9 +300,9 @@ struct kstatfs;
300struct vm_area_struct; 300struct vm_area_struct;
301struct vfsmount; 301struct vfsmount;
302 302
303extern void __init inode_init(unsigned long); 303extern void __init inode_init(void);
304extern void __init inode_init_early(void); 304extern void __init inode_init_early(void);
305extern void __init mnt_init(unsigned long); 305extern void __init mnt_init(void);
306extern void __init files_init(unsigned long); 306extern void __init files_init(unsigned long);
307 307
308struct buffer_head; 308struct buffer_head;