Searched hist:a582a738c763e106f47eab24b8146c698a9c700b (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/mm/ |
H A D | compaction.c | diff a582a738c763e106f47eab24b8146c698a9c700b Wed Jun 15 17:08:49 CDT 2011 Shaohua Li <shaohua.li@intel.com> compaction: checks correct fragmentation index
fragmentation_index() returns -1000 when the allocation might succeed This doesn't match the comment and code in compaction_suitable(). I thought compaction_suitable should return COMPACT_PARTIAL in -1000 case, because in this case allocation could succeed depending on watermarks.
The impact of this is that compaction starts and compact_finished() is called which rechecks the watermarks and the free lists. It should have the same result in that compaction should not start but is more expensive.
Acked-by: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Shaohua Li <shaohua.li@intel.com> Cc: Minchan Kim <minchan.kim@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|