mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mm: page_counter: pull "-1" handling out of page_counter_memparse()
The unified hierarchy interface for memory cgroups will no longer use "-1" to mean maximum possible resource value. In preparation for this, make the string an argument and let the caller supply it. Signed-off-by: Johannes Weiner <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Vladimir Davydov <[email protected]> Cc: Greg Thelen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8d29e18a45
commit
650c5e5654
5 changed files with 10 additions and 8 deletions
|
|
@ -120,7 +120,7 @@ static ssize_t tcp_cgroup_write(struct kernfs_open_file *of,
|
|||
switch (of_cft(of)->private) {
|
||||
case RES_LIMIT:
|
||||
/* see memcontrol.c */
|
||||
ret = page_counter_memparse(buf, &nr_pages);
|
||||
ret = page_counter_memparse(buf, "-1", &nr_pages);
|
||||
if (ret)
|
||||
break;
|
||||
mutex_lock(&tcp_limit_mutex);
|
||||
|
|
|
|||
Loading…
Reference in a new issue