lkml.org 
[lkml]   [2013]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/5] VFS: Convert drop_caches to accept string
Date

Signed-off-by: Li Wang <liwang@ubuntukylin.com>
Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
---
kernel/sysctl.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 34a6047..2f2d8ab 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1255,12 +1255,10 @@ static struct ctl_table vm_table[] = {
},
{
.procname = "drop_caches",
- .data = &sysctl_drop_caches,
- .maxlen = sizeof(int),
+ .data = sysctl_drop_caches,
+ .maxlen = PATH_MAX,
.mode = 0644,
.proc_handler = drop_caches_sysctl_handler,
- .extra1 = &one,
- .extra2 = &three,
},
#ifdef CONFIG_COMPACTION
{
--
1.7.9.5


\
 
 \ /
  Last update: 2013-12-16 19:41    [W:0.166 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site