Add blank line to make the layout of the program clearer Signed-off-by: XU pengfei <xupengfei@xxxxxxxxxxxx> --- mm/page_isolation.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/page_isolation.c b/mm/page_isolation.c index d200d41ad0d3..b5ec13fcfacd 100644 --- a/mm/page_isolation.c +++ b/mm/page_isolation.c @@ -213,6 +213,7 @@ static void unset_migratetype_isolate(struct page *page, int migratetype) zone = page_zone(page); spin_lock_irqsave(&zone->lock, flags); + if (!is_migrate_isolate_page(page)) goto out; @@ -255,9 +256,11 @@ static void unset_migratetype_isolate(struct page *page, int migratetype) nr_pages = move_freepages_block(zone, page, migratetype, NULL); __mod_zone_freepage_state(zone, nr_pages, migratetype); } + set_pageblock_migratetype(page, migratetype); if (isolated_page) __putback_isolated_page(page, order, migratetype); + zone->nr_isolate_pageblock--; out: spin_unlock_irqrestore(&zone->lock, flags); -- 2.18.2