commit | 9861a62c335cd34a2b6b25aaaf5898e8370299ec | [log] [tgz] |
---|---|---|
author | Vlastimil Babka <[email protected]> | Fri Oct 07 16:57:53 2016 -0700 |
committer | Linus Torvalds <[email protected]> | Fri Oct 07 18:46:27 2016 -0700 |
tree | 4eb21fe16acfb2e229422de1927bfcb152781829 | |
parent | f2b8228c5f99a92bc07efd36f8dc840e0705a266 [diff] |
mm, compaction: create compact_gap wrapper Compaction uses a watermark gap of (2UL << order) pages at various places and it's not immediately obvious why. Abstract it through a compact_gap() wrapper to create a single place with a thorough explanation. [[email protected]: clarify the comment of compact_gap()] Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Vlastimil Babka <[email protected]> Tested-by: Lorenzo Stoakes <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: David Rientjes <[email protected]> Cc: Rik van Riel <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>