lkml.org 
[lkml]   [2022]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] mm: Add blank line to make the layout of the program clearer
Date
Add blank line to make the layout of the program clearer

Signed-off-by: XU pengfei <xupengfei@nfschina.com>
---
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
\
 
 \ /
  Last update: 2022-06-08 06:18    [W:0.067 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site