]> Git Repo - linux.git/commit
mm: rename page_counter's count/limit into usage/max
authorRoman Gushchin <[email protected]>
Fri, 8 Jun 2018 00:06:18 +0000 (17:06 -0700)
committerLinus Torvalds <[email protected]>
Fri, 8 Jun 2018 00:34:35 +0000 (17:34 -0700)
commitbbec2e15170aae3e084d7d9afc730aeebe01b654
tree60fae9998aa86f7f004435b133ae55e48a0e2477
parent1c4bc43ddfd52cbe5a08bb86ae636f55d2799424
mm: rename page_counter's count/limit into usage/max

This patch renames struct page_counter fields:
  count -> usage
  limit -> max

and the corresponding functions:
  page_counter_limit() -> page_counter_set_max()
  mem_cgroup_get_limit() -> mem_cgroup_get_max()
  mem_cgroup_resize_limit() -> mem_cgroup_resize_max()
  memcg_update_kmem_limit() -> memcg_update_kmem_max()
  memcg_update_tcp_limit() -> memcg_update_tcp_max()

The idea behind this renaming is to have the direct matching
between memory cgroup knobs (low, high, max) and page_counters API.

This is pure renaming, this patch doesn't bring any functional change.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Roman Gushchin <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/memcontrol.h
include/linux/page_counter.h
mm/hugetlb_cgroup.c
mm/memcontrol.c
mm/oom_kill.c
mm/page_counter.c
This page took 0.090861 seconds and 4 git commands to generate.