mm/migrate_device: try to handle swapcache pages
authorMika Penttilä <mpenttil@redhat.com>
Wed, 7 Jun 2023 17:29:44 +0000 (20:29 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:12:09 +0000 (10:12 -0700)
commitdf263d9a7dffee94ca5391120ee3b0587efa07f1
tree60c2dff63775a9797c1ac21247a5d8c190cc8062
parentd9cfaf405b8ffe2c716b1ce4c82e0a19d50951da
mm/migrate_device: try to handle swapcache pages

Migrating file pages and swapcache pages into device memory is not
supported.  Try to get rid of the swap cache, and if successful, go ahead
as with other anonymous pages.

Link: https://lkml.kernel.org/r/20230607172944.11713-1-mpenttil@redhat.com
Signed-off-by: Mika Penttilä <mpenttil@redhat.com>
Reviewed-by: "Huang, Ying" <ying.huang@intel.com>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/migrate_device.c