History

mm, memcg: clean up reclaim iter array

The mem_cgroup_reclaim_cookie is only used in memcg softlimit reclaim now, and the priority of the reclaim is always 0. We don't need to define the iter in struct mem_cgroup_per_node as an array any more. That could make the code more clear and save some space.

Yafang Shao committed 6 years ago

Commit 9da83f31 parent a1100a72 files · +4 −10Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/memcontrol.h+1−2
@@ -58,7 +58,6 @@ enum mem_cgroup_protection { · 57 unmodified lines
5858
5959 struct mem_cgroup_reclaim_cookie {
6060 pg_data_t *pgdat;
61− int priority;
6261 unsigned int generation;
6362 };
6463
@@ -126,7 +125,7 @@ struct mem_cgroup_per_node { · 61 unmodified lines
126125
127126 unsigned long lru_zone_size[MAX_NR_ZONES][NR_LRU_LISTS];
128127
129− struct mem_cgroup_reclaim_iter iter[DEF_PRIORITY + 1];
128+ struct mem_cgroup_reclaim_iter iter;
130129
131130 struct memcg_shrinker_map __rcu *shrinker_map;
132131

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t