[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200119030636.11899-4-richardw.yang@linux.intel.com>
Date: Sun, 19 Jan 2020 11:06:31 +0800
From: Wei Yang <richardw.yang@...ux.intel.com>
To: akpm@...ux-foundation.org
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org, mhocko@...e.com,
yang.shi@...ux.alibaba.com,
Wei Yang <richardw.yang@...ux.intel.com>
Subject: [PATCH 3/8] mm/migrate.c: reform the last call on do_move_pages_to_node()
No functional change, just reform it to make it as the same shape as
other calls on do_move_pages_to_node().
This is a preparation for further cleanup.
Signed-off-by: Wei Yang <richardw.yang@...ux.intel.com>
---
mm/migrate.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/mm/migrate.c b/mm/migrate.c
index c3ef70de5876..4a63fb8fbb6d 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -1675,8 +1675,12 @@ static int do_pages_move(struct mm_struct *mm, nodemask_t task_nodes,
/* Make sure we do not overwrite the existing error */
err1 = do_move_pages_to_node(mm, &pagelist, current_node);
- if (!err1)
- err1 = store_status(status, start, current_node, i - start);
+ if (err1) {
+ if (err >= 0)
+ err = err1;
+ goto out;
+ }
+ err1 = store_status(status, start, current_node, i - start);
if (err >= 0)
err = err1;
out:
--
2.17.1
Powered by blists - more mailing lists