aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorSha Zhengju <[email protected]>2013-09-12 15:13:46 -0700
committerLinus Torvalds <[email protected]>2013-09-12 15:38:02 -0700
commit34ff8dc08956098563989d8599840b130be81252 (patch)
tree39c964226586a57b0b1e97d9eb1f34b1dc99519e /net/lapb/lapb_iface.c
parent3812c8c8f3953921ef18544110dafc3505c1ac62 (diff)
memcg: correct RESOURCE_MAX to ULLONG_MAX
Current RESOURCE_MAX is ULONG_MAX, but the value we used to set resource limit is unsigned long long, so we can set bigger value than that which is strange. The XXX_MAX should be reasonable max value, bigger than that should be overflow. Notice that this change will affect user output of default *.limit_in_bytes: before change: $ cat /cgroup/memory/memory.limit_in_bytes 9223372036854775807 after change: $ cat /cgroup/memory/memory.limit_in_bytes 18446744073709551615 But it doesn't alter the API in term of input - we can still use "echo -1 > *.limit_in_bytes" to reset the numbers to "unlimited". Signed-off-by: Sha Zhengju <[email protected]> Signed-off-by: Qiang Huang <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Daisuke Nishimura <[email protected]> Cc: Jeff Liu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions