Commit 74bf17cffc32511c7c6d70fe7f376b92662e186e
Committed by
Linus Torvalds
1 parent
1d99493b3a
Exists in
master
and in
4 other branches
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>
Showing 4 changed files with 8 additions and 8 deletions Side-by-side Diff
fs/dcache.c
... | ... | @@ -2108,7 +2108,7 @@ |
2108 | 2108 | INIT_HLIST_HEAD(&dentry_hashtable[loop]); |
2109 | 2109 | } |
2110 | 2110 | |
2111 | -static void __init dcache_init(unsigned long mempages) | |
2111 | +static void __init dcache_init(void) | |
2112 | 2112 | { |
2113 | 2113 | int loop; |
2114 | 2114 | |
2115 | 2115 | |
... | ... | @@ -2170,10 +2170,10 @@ |
2170 | 2170 | filp_cachep = kmem_cache_create("filp", sizeof(struct file), 0, |
2171 | 2171 | SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL); |
2172 | 2172 | |
2173 | - dcache_init(mempages); | |
2174 | - inode_init(mempages); | |
2173 | + dcache_init(); | |
2174 | + inode_init(); | |
2175 | 2175 | files_init(mempages); |
2176 | - mnt_init(mempages); | |
2176 | + mnt_init(); | |
2177 | 2177 | bdev_cache_init(); |
2178 | 2178 | chrdev_init(); |
2179 | 2179 | } |
fs/inode.c
fs/namespace.c
include/linux/fs.h
... | ... | @@ -300,9 +300,9 @@ |
300 | 300 | struct vm_area_struct; |
301 | 301 | struct vfsmount; |
302 | 302 | |
303 | -extern void __init inode_init(unsigned long); | |
303 | +extern void __init inode_init(void); | |
304 | 304 | extern void __init inode_init_early(void); |
305 | -extern void __init mnt_init(unsigned long); | |
305 | +extern void __init mnt_init(void); | |
306 | 306 | extern void __init files_init(unsigned long); |
307 | 307 | |
308 | 308 | struct buffer_head; |