mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
mm: slub: avoid return code from slab_sysfs_init if debugfs is off
Avoid returning from slab_sysfs_init if debugfs is off as it is not fatal. Change-Id: Ice8c26861ad6d6d143e910bb36aeed61dc23cb2f Signed-off-by: Faiyaz Mohammed <faiyazm@codeaurora.org>
This commit is contained in:
parent
376dd78d67
commit
d12e350603
1 changed files with 3 additions and 10 deletions
13
mm/slub.c
13
mm/slub.c
|
|
@ -6323,16 +6323,9 @@ static int __init slab_sysfs_init(void)
|
|||
#ifdef CONFIG_SLUB_DEBUG
|
||||
if (slub_debug) {
|
||||
slab_debugfs_top = debugfs_create_dir("slab", NULL);
|
||||
if (!slab_debugfs_top) {
|
||||
pr_err("Couldn't create slab debugfs directory\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (!debugfs_create_file("alloc_trace", 0400, slab_debugfs_top,
|
||||
NULL, &slab_debug_alloc_fops)) {
|
||||
pr_err("Couldn't create slab/tests debugfs directory\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
if (!IS_ERR(slab_debugfs_top))
|
||||
debugfs_create_file("alloc_trace", 0400, slab_debugfs_top,
|
||||
NULL, &slab_debug_alloc_fops);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue