diff options
author | KAMEZAWA Hiroyuki <[email protected]> | 2011-06-15 15:08:44 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-06-15 20:04:01 -0700 |
commit | 7ae534d074e01e54d5cfbc9734b73fdfc855501f (patch) | |
tree | 8c815762779fd79cc83db788aa29e6239212c3f4 /lib/mpi/mpiutil.c | |
parent | 733eda7ac316cd4e550fa096e4ed42356dc546e7 (diff) |
memcg: fix wrong check of noswap with softlimit
Hierarchical reclaim doesn't swap out if memsw and resource limits are
thye same (memsw_is_minimum == true) because we would hit mem+swap limit
anyway (during hard limit reclaim).
If it comes to the soft limit we shouldn't consider memsw_is_minimum at
all because it doesn't make much sense. Either the soft limit is bellow
the hard limit and then we cannot hit mem+swap limit or the direct reclaim
takes a precedence.
Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Reviewed-by: Michal Hocko <[email protected]>
Acked-by: Daisuke Nishimura <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions