]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - mm/migrate.c
mm/migrate.c: check pagelist in move_pages_and_store_status()
authorWei Yang <richardw.yang@linux.intel.com>
Tue, 7 Apr 2020 03:04:15 +0000 (20:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2020 17:43:38 +0000 (10:43 -0700)
commit5d7ae891cdc68f30e8b6db35bbd7f0b1aeee189c
tree7fb633fbccabb5e5935e0021638a90e2e364b946
parent7ca8783ad816972f0c64a189b8ba6615c6b78521
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>
mm/migrate.c