diff options
author | Michal Hocko <mhocko@suse.cz> | 2013-07-08 23:00:40 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-09 17:33:25 (GMT) |
commit | 5f12733e9d976132e6cbbae9d08f71406fdacdfb (patch) | |
tree | 144cda4e157dcbedd28757796f40c2a4cb52c92f /mm/compaction.c | |
parent | 465939a1fa283cf2a5194362c5accf4429c99c42 (diff) | |
download | linux-fsl-qoriq-5f12733e9d976132e6cbbae9d08f71406fdacdfb.tar.xz |
mm: honor min_free_kbytes set by user
min_free_kbytes is updated during memory hotplug (by
init_per_zone_wmark_min) currently which is right thing to do in most
cases but this could be unexpected if admin increased the value to
prevent from allocation failures and the new min_free_kbytes would be
decreased as a result of memory hotadd.
This patch saves the user defined value and allows updating
min_free_kbytes only if it is higher than the saved one.
A warning is printed when the new value is ignored.
Signed-off-by: Michal Hocko <mhocko@suse.cz>
Cc: Mel Gorman <mgorman@suse.de>
Acked-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/compaction.c')
0 files changed, 0 insertions, 0 deletions