mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1d99493b3a
commit
74bf17cffc
4 changed files with 8 additions and 8 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue