forked from mirrors/linux
		
	mm/compaction: respect ignore_skip_hint in update_pageblock_skip
update_pageblock_skip() only fits to compaction which tries to isolate by pageblock unit. If isolate_migratepages_range() is called by CMA, it try to isolate regardless of pageblock unit and it don't reference get_pageblock_skip() by ignore_skip_hint. We should also respect it on update_pageblock_skip() to prevent from setting the wrong information. Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Reviewed-by: Wanpeng Li <liwanp@linux.vnet.ibm.com> Cc: Christoph Lameter <cl@linux.com> Cc: Rafael Aquini <aquini@redhat.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com> Cc: Mel Gorman <mgorman@suse.de> Cc: Rik van Riel <riel@redhat.com> Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Cc: <stable@vger.kernel.org> [3.7+] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									b0e5fd7359
								
							
						
					
					
						commit
						6815bf3f23
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -134,6 +134,10 @@ static void update_pageblock_skip(struct compact_control *cc, | ||||||
| 			bool migrate_scanner) | 			bool migrate_scanner) | ||||||
| { | { | ||||||
| 	struct zone *zone = cc->zone; | 	struct zone *zone = cc->zone; | ||||||
|  | 
 | ||||||
|  | 	if (cc->ignore_skip_hint) | ||||||
|  | 		return; | ||||||
|  | 
 | ||||||
| 	if (!page) | 	if (!page) | ||||||
| 		return; | 		return; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Joonsoo Kim
						Joonsoo Kim