mm: page_alloc: generalize the dirty balance reserve
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 14 Jan 2016 23:20:15 +0000 (15:20 -0800)
committerAlex Shi <alex.shi@linaro.org>
Tue, 29 Nov 2016 07:25:03 +0000 (15:25 +0800)
commitaaaf9e59c00aa2ff9c2bd1da05c0cf1ba2a9634a
tree6e21c2802b29ed74c99a272ea7d988bd875ba80e
parent83595f56588d5f5d677e62a576b6248328862b34
mm: page_alloc: generalize the dirty balance reserve

The dirty balance reserve that dirty throttling has to consider is
merely memory not available to userspace allocations.  There is nothing
writeback-specific about it.  Generalize the name so that it's reusable
outside of that context.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit a8d0143730d7b42c9fe6d1435d92ecce6863a62a)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
include/linux/mmzone.h
include/linux/swap.h
mm/page-writeback.c
mm/page_alloc.c