linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch v2 0/4] cleanup on do_pages_move()
@ 2020-01-22  1:16 Wei Yang
  2020-01-22  1:16 ` [Patch v2 1/4] mm/migrate.c: not necessary to check start and i Wei Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Wei Yang @ 2020-01-22  1:16 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, mhocko, yang.shi, rientjes, Wei Yang

The logic in do_pages_move() is a little mess for audience to read and has
some potential error on handling the return value. Especially there are
three calls on do_move_pages_to_node() and store_status() with almost the
same form.

This patch set tries to make the code a little friendly for audience by
consolidate the calls.

After this, we can do a better fix.

v2:
  * remove some unnecessary cleanup

Wei Yang (4):
  mm/migrate.c: not necessary to check start and i
  mm/migrate.c: wrap do_move_pages_to_node() and store_status()
  mm/migrate.c: check pagelist in move_pages_and_store_status()
  mm/migrate.c: handle same node and add failure in the same way

 mm/migrate.c | 57 +++++++++++++++++++++++++++-------------------------
 1 file changed, 30 insertions(+), 27 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2020-01-29 22:07 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22  1:16 [Patch v2 0/4] cleanup on do_pages_move() Wei Yang
2020-01-22  1:16 ` [Patch v2 1/4] mm/migrate.c: not necessary to check start and i Wei Yang
2020-01-28 10:04   ` David Hildenbrand
2020-01-29  0:32     ` Wei Yang
2020-01-22  1:16 ` [Patch v2 2/4] mm/migrate.c: wrap do_move_pages_to_node() and store_status() Wei Yang
2020-01-28 10:14   ` David Hildenbrand
2020-01-29  0:38     ` Wei Yang
2020-01-29  9:28       ` David Hildenbrand
2020-01-29 22:00         ` Wei Yang
2020-01-22  1:16 ` [Patch v2 3/4] mm/migrate.c: check pagelist in move_pages_and_store_status() Wei Yang
2020-01-28 10:21   ` David Hildenbrand
2020-01-29  0:46     ` Wei Yang
2020-01-29  9:36       ` David Hildenbrand
2020-01-22  1:16 ` [Patch v2 4/4] mm/migrate.c: handle same node and add failure in the same way Wei Yang
2020-01-29 10:13   ` David Hildenbrand
2020-01-29 22:07     ` Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).