aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 60d28e36f0e0..af4b04f4d744 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1396,17 +1396,6 @@ int mem_cgroup_inactive_anon_is_low(struct lruvec *lruvec)
1396 return inactive * inactive_ratio < active; 1396 return inactive * inactive_ratio < active;
1397} 1397}
1398 1398
1399int mem_cgroup_inactive_file_is_low(struct lruvec *lruvec)
1400{
1401 unsigned long active;
1402 unsigned long inactive;
1403
1404 inactive = mem_cgroup_get_lru_size(lruvec, LRU_INACTIVE_FILE);
1405 active = mem_cgroup_get_lru_size(lruvec, LRU_ACTIVE_FILE);
1406
1407 return (active > inactive);
1408}
1409
1410#define mem_cgroup_from_res_counter(counter, member) \ 1399#define mem_cgroup_from_res_counter(counter, member) \
1411 container_of(counter, struct mem_cgroup, member) 1400 container_of(counter, struct mem_cgroup, member)
1412 1401