linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [Patch v5 0/4] cleanup on do_pages_move()
@ 2020-02-14  0:30 Wei Yang
  2020-02-14  0:30 ` [Patch v5 1/4] mm/migrate.c: no need to check for i > start in do_pages_move() Wei Yang
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Wei Yang @ 2020-02-14  0:30 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, mhocko, yang.shi, rientjes, david, 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.

v5:
  : rebase on top of latest upstream, "linux/pipe_fs_i.h: fix kernel-doc
    warnings after @wait was split"
v4:
  * rephrase changelog based on suggestion from David Hildenbrand
  * trivial change on code style and comment
v3:
  * rebase on top of Yang Shi's fix "mm: move_pages: report the number of
    non-attempted pages"
v2:
  * remove some unnecessary cleanup


Wei Yang (4):
  mm/migrate.c: no need to check for i > start in do_pages_move()
  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: unify "not queued for migration" handling in
    do_pages_move()

 mm/migrate.c | 88 +++++++++++++++++++++++-----------------------------
 1 file changed, 39 insertions(+), 49 deletions(-)

-- 
2.17.1



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

end of thread, other threads:[~2020-04-07 12:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-14  0:30 [Patch v5 0/4] cleanup on do_pages_move() Wei Yang
2020-02-14  0:30 ` [Patch v5 1/4] mm/migrate.c: no need to check for i > start in do_pages_move() Wei Yang
2020-02-14  0:30 ` [Patch v5 2/4] mm/migrate.c: wrap do_move_pages_to_node() and store_status() Wei Yang
2020-02-14  0:30 ` [Patch v5 3/4] mm/migrate.c: check pagelist in move_pages_and_store_status() Wei Yang
2020-02-14  0:30 ` [Patch v5 4/4] mm/migrate.c: unify "not queued for migration" handling in do_pages_move() Wei Yang
2020-04-07 12:45 ` [Patch v5 0/4] cleanup on do_pages_move() 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).