]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
fs: remove the unused mempages parameter
authorDenis Cheng <crquan@gmail.com>
Wed, 17 Oct 2007 06:26:30 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:49 +0000 (08:42 -0700)
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>
fs/dcache.c
fs/inode.c
fs/namespace.c
include/linux/fs.h

index 7da0cf50873e5088fea6a496872a28f401f7a899..920c87720385d34ea914f21c404c5955db08b38d 100644 (file)
@@ -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;
 
@@ -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();
 }
index ee93b3e679776c6a6763061e48f6411616c720e5..c6165771e00e7443618176cc7156bbf14dd3387b 100644 (file)
@@ -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;
 
index ddbda13c2d317dc79bb6bffa41e688a250dd1ccf..07daa797259184f1c4cd181cf09f04156bd4dabe 100644 (file)
@@ -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;
index 8b3580d0664e41f63d0a2d6cfd32a59ac99c97d5..73f0bdbe436aab35c43a312e451b1c2d5bf793e3 100644 (file)
@@ -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;