]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
mm: page_counter: pull "-1" handling out of page_counter_memparse()
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 11 Feb 2015 23:26:03 +0000 (15:26 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Feb 2015 01:06:02 +0000 (17:06 -0800)
commit650c5e565492f9092552bfe4d65935196c7d9567
tree5fce0f701502f4b75339d4c53b37301d3db65fdb
parent8d29e18a459dfc2adeafc1acb9c4185ee6713116
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 <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Cc: Greg Thelen <gthelen@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/page_counter.h
mm/hugetlb_cgroup.c
mm/memcontrol.c
mm/page_counter.c
net/ipv4/tcp_memcontrol.c