diff options
author | 2020-04-06 20:04:15 -0700 | |
---|---|---|
committer | 2020-04-07 10:43:38 -0700 | |
commit | 5d7ae891cdc68f30e8b6db35bbd7f0b1aeee189c (patch) | |
tree | 7fb633fbccabb5e5935e0021638a90e2e364b946 /include | |
parent | mm/migrate.c: wrap do_move_pages_to_node() and store_status() (diff) | |
download | wireguard-linux-5d7ae891cdc68f30e8b6db35bbd7f0b1aeee189c.tar.xz wireguard-linux-5d7ae891cdc68f30e8b6db35bbd7f0b1aeee189c.zip |
mm/migrate.c: check pagelist in move_pages_and_store_status()
When pagelist is empty, it is not necessary to do the move and store.
Also it consolidate the empty list check in one place.
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-4-richardw.yang@linux.intel.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions