From: XU pengfei <xupengfei@nfschina.com>
To: akpm@linux-foundation.org
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
XU pengfei <xupengfei@nfschina.com>
Subject: [PATCH] mm: Add blank line to make the layout of the program clearer
Date: Wed, 8 Jun 2022 09:36:05 +0800 [thread overview]
Message-ID: <20220608013605.6613-1-xupengfei@nfschina.com> (raw)
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
next reply other threads:[~2022-06-08 1:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-08 1:36 XU pengfei [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-06-08 1:22 XU pengfei
2022-06-08 1:31 ` Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220608013605.6613-1-xupengfei@nfschina.com \
--to=xupengfei@nfschina.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox