memcg: enum lru_list lru
Mostly we use "enum lru_list lru": change those few "l"s to "lru"s. Signed-off-by: Hugh Dickins <hughd@google.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Acked-by: Kirill A. Shutemov <kirill@shutemov.name> Acked-by: Michal Hocko <mhocko@suse.cz> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1eb4927251
commit
f156ab9333
@ -719,14 +719,14 @@ mem_cgroup_zone_nr_lru_pages(struct mem_cgroup *memcg, int nid, int zid,
|
|||||||
unsigned int lru_mask)
|
unsigned int lru_mask)
|
||||||
{
|
{
|
||||||
struct mem_cgroup_per_zone *mz;
|
struct mem_cgroup_per_zone *mz;
|
||||||
enum lru_list l;
|
enum lru_list lru;
|
||||||
unsigned long ret = 0;
|
unsigned long ret = 0;
|
||||||
|
|
||||||
mz = mem_cgroup_zoneinfo(memcg, nid, zid);
|
mz = mem_cgroup_zoneinfo(memcg, nid, zid);
|
||||||
|
|
||||||
for_each_lru(l) {
|
for_each_lru(lru) {
|
||||||
if (BIT(l) & lru_mask)
|
if (BIT(lru) & lru_mask)
|
||||||
ret += mz->lru_size[l];
|
ret += mz->lru_size[lru];
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -3701,10 +3701,10 @@ move_account:
|
|||||||
mem_cgroup_start_move(memcg);
|
mem_cgroup_start_move(memcg);
|
||||||
for_each_node_state(node, N_HIGH_MEMORY) {
|
for_each_node_state(node, N_HIGH_MEMORY) {
|
||||||
for (zid = 0; !ret && zid < MAX_NR_ZONES; zid++) {
|
for (zid = 0; !ret && zid < MAX_NR_ZONES; zid++) {
|
||||||
enum lru_list l;
|
enum lru_list lru;
|
||||||
for_each_lru(l) {
|
for_each_lru(lru) {
|
||||||
ret = mem_cgroup_force_empty_list(memcg,
|
ret = mem_cgroup_force_empty_list(memcg,
|
||||||
node, zid, l);
|
node, zid, lru);
|
||||||
if (ret)
|
if (ret)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -4734,7 +4734,7 @@ static int alloc_mem_cgroup_per_zone_info(struct mem_cgroup *memcg, int node)
|
|||||||
{
|
{
|
||||||
struct mem_cgroup_per_node *pn;
|
struct mem_cgroup_per_node *pn;
|
||||||
struct mem_cgroup_per_zone *mz;
|
struct mem_cgroup_per_zone *mz;
|
||||||
enum lru_list l;
|
enum lru_list lru;
|
||||||
int zone, tmp = node;
|
int zone, tmp = node;
|
||||||
/*
|
/*
|
||||||
* This routine is called against possible nodes.
|
* This routine is called against possible nodes.
|
||||||
@ -4752,8 +4752,8 @@ static int alloc_mem_cgroup_per_zone_info(struct mem_cgroup *memcg, int node)
|
|||||||
|
|
||||||
for (zone = 0; zone < MAX_NR_ZONES; zone++) {
|
for (zone = 0; zone < MAX_NR_ZONES; zone++) {
|
||||||
mz = &pn->zoneinfo[zone];
|
mz = &pn->zoneinfo[zone];
|
||||||
for_each_lru(l)
|
for_each_lru(lru)
|
||||||
INIT_LIST_HEAD(&mz->lruvec.lists[l]);
|
INIT_LIST_HEAD(&mz->lruvec.lists[lru]);
|
||||||
mz->usage_in_excess = 0;
|
mz->usage_in_excess = 0;
|
||||||
mz->on_tree = false;
|
mz->on_tree = false;
|
||||||
mz->memcg = memcg;
|
mz->memcg = memcg;
|
||||||
|
Loading…
Reference in New Issue
Block a user