mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
mm: slabinfo: remove CONFIG_SLABINFO
According to discussion with Christoph (https://marc.info/?l=linux-kernel&m=150695909709711&w=2), it sounds like it is pointless to keep CONFIG_SLABINFO around. This patch removes the CONFIG_SLABINFO config option, but /proc/slabinfo is still available. [[email protected]: v11] Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Yang Shi <[email protected]> Acked-by: David Rientjes <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Pekka Enberg <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7ad3f188aa
commit
5b36577109
5 changed files with 6 additions and 15 deletions
|
|
@ -5852,7 +5852,7 @@ __initcall(slab_sysfs_init);
|
|||
/*
|
||||
* The /proc/slabinfo ABI
|
||||
*/
|
||||
#ifdef CONFIG_SLABINFO
|
||||
#ifdef CONFIG_SLUB_DEBUG
|
||||
void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo)
|
||||
{
|
||||
unsigned long nr_slabs = 0;
|
||||
|
|
@ -5884,4 +5884,4 @@ ssize_t slabinfo_write(struct file *file, const char __user *buffer,
|
|||
{
|
||||
return -EIO;
|
||||
}
|
||||
#endif /* CONFIG_SLABINFO */
|
||||
#endif /* CONFIG_SLUB_DEBUG */
|
||||
|
|
|
|||
Loading…
Reference in a new issue