Commit 5bcd7ff9 authored by Alexey Dobriyan's avatar Alexey Dobriyan
Browse files

proc: proc_init_inodecache() can't fail



kmem_cache creation code will panic, don't return anything.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
parent 7c88db0c
......@@ -106,14 +106,13 @@ static void init_once(void *foo)
inode_init_once(&ei->vfs_inode);
}
int __init proc_init_inodecache(void)
void __init proc_init_inodecache(void)
{
proc_inode_cachep = kmem_cache_create("proc_inode_cache",
sizeof(struct proc_inode),
0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD|SLAB_PANIC),
init_once);
return 0;
}
static const struct super_operations proc_sops = {
......
......@@ -66,7 +66,7 @@ extern const struct inode_operations proc_net_inode_operations;
void free_proc_entry(struct proc_dir_entry *de);
int proc_init_inodecache(void);
void proc_init_inodecache(void);
static inline struct pid *proc_pid(struct inode *inode)
{
......
......@@ -104,9 +104,9 @@ static struct file_system_type proc_fs_type = {
void __init proc_root_init(void)
{
int err = proc_init_inodecache();
if (err)
return;
int err;
proc_init_inodecache();
err = register_filesystem(&proc_fs_type);
if (err)
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment