diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2013-02-22 16:35:19 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-23 17:50:20 -0800 |
commit | e3790144c9091631a18564aa64db8a971da02c41 (patch) | |
tree | 5bdfc979f120d647ed617893ab9e300c2b4913c5 /init | |
parent | 860f2759d94bf9db637d85d75d074de88af54688 (diff) | |
download | linux-3.10-e3790144c9091631a18564aa64db8a971da02c41.tar.gz linux-3.10-e3790144c9091631a18564aa64db8a971da02c41.tar.bz2 linux-3.10-e3790144c9091631a18564aa64db8a971da02c41.zip |
mm: refactor inactive_file_is_low() to use get_lru_size()
An inactive file list is considered low when its active counterpart is
bigger, regardless of whether it is a global zone LRU list or a memcg
zone LRU list. The only difference is in how the LRU size is assessed.
get_lru_size() does the right thing for both global and memcg reclaim
situations.
Get rid of inactive_file_is_low_global() and
mem_cgroup_inactive_file_is_low() by using get_lru_size() and compare
the numbers in common code.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions