lkml.org 
[lkml]   [2023]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] mm/memcontrol: add tips for kmem.slabinfo
Date
From: Xiongwei Song <xiongwei.song@windriver.com>

No any output from kmem.slabinfo, which is not friendly. Adding
tips for it.

Signed-off-by: Xiongwei Song <xiongwei.song@windriver.com>
---
mm/memcontrol.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index e8ca4bdcb03c..58d3bd93890b 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -5002,10 +5002,8 @@ static ssize_t memcg_write_event_control(struct kernfs_open_file *of,
#if defined(CONFIG_MEMCG_KMEM) && (defined(CONFIG_SLAB) || defined(CONFIG_SLUB_DEBUG))
static int mem_cgroup_slab_show(struct seq_file *m, void *p)
{
- /*
- * Deprecated.
- * Please, take a look at tools/cgroup/memcg_slabinfo.py .
- */
+ seq_puts(m, "This file is deprecated.\n"
+ "Please use tools/cgroup/memcg_slabinfo.py, which is in kernel source.\n");
return 0;
}
#endif
--
2.37.3
\
 
 \ /
  Last update: 2023-08-08 04:23    [W:0.313 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site