diff options
author | 2020-04-06 20:04:12 -0700 | |
---|---|---|
committer | 2020-04-07 10:43:38 -0700 | |
commit | 7ca8783ad816972f0c64a189b8ba6615c6b78521 (patch) | |
tree | d4d7c3c04260d7393c866eedebfd0590f32014a5 /include/linux/page_reporting.h | |
parent | mm/migrate.c: no need to check for i > start in do_pages_move() (diff) | |
download | wireguard-linux-7ca8783ad816972f0c64a189b8ba6615c6b78521.tar.xz wireguard-linux-7ca8783ad816972f0c64a189b8ba6615c6b78521.zip |
mm/migrate.c: wrap do_move_pages_to_node() and store_status()
Usually, do_move_pages_to_node() and store_status() are used in
combination. We have three similar call sites.
Let's provide a wrapper for both function calls -
move_pages_and_store_status - to make the calling code easier to maintain
and fix (as noted by Yang Shi, the return value handling of
do_move_pages_to_node() has a flaw).
[david@redhat.com rephrase changelog]
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Link: http://lkml.kernel.org/r/20200214003017.25558-3-richardw.yang@linux.intel.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/page_reporting.h')
0 files changed, 0 insertions, 0 deletions