All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: Add blank line to make the layout of the program clearer
@ 2022-06-08  1:22 XU pengfei
  2022-06-08  1:31 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: XU pengfei @ 2022-06-08  1:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, Kernel, XU pengfei

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] mm: Add blank line to make the layout of the program clearer
  2022-06-08  1:22 [PATCH] mm: Add blank line to make the layout of the program clearer XU pengfei
@ 2022-06-08  1:31 ` Matthew Wilcox
  0 siblings, 0 replies; 3+ messages in thread
From: Matthew Wilcox @ 2022-06-08  1:31 UTC (permalink / raw)
  To: XU pengfei; +Cc: akpm, linux-mm, linux-kernel, Kernel

On Wed, Jun 08, 2022 at 09:22:33AM +0800, XU pengfei wrote:
> Add blank line to make the layout of the program clearer

I've seen some terrible ideas for inflating patch counts, but
this is just ... no.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] mm: Add blank line to make the layout of the program clearer
@ 2022-06-08  1:36 XU pengfei
  0 siblings, 0 replies; 3+ messages in thread
From: XU pengfei @ 2022-06-08  1:36 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, XU pengfei

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-08  4:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08  1:22 [PATCH] mm: Add blank line to make the layout of the program clearer XU pengfei
2022-06-08  1:31 ` Matthew Wilcox
2022-06-08  1:36 XU pengfei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.