aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/migrate_device.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-08-30 20:36:00 +0800
committerAndrew Morton <akpm@linux-foundation.org>2022-09-26 19:46:03 -0700
commitda29499124cd2221539b235c1f93c7d93faf6565 (patch)
tree48d4a23dbf64c00c068443eedfc14a1e5cc43f9e /mm/migrate_device.c
parentmm, hwpoison: use ClearPageHWPoison() in memory_failure() (diff)
downloadwireguard-linux-da29499124cd2221539b235c1f93c7d93faf6565.tar.xz
wireguard-linux-da29499124cd2221539b235c1f93c7d93faf6565.zip
mm, hwpoison: use __PageMovable() to detect non-lru movable pages
It's more recommended to use __PageMovable() to detect non-lru movable pages. We can avoid bumping page refcnt via isolate_movable_page() for the isolated lru pages. Also if pages become PageLRU just after they're checked but before trying to isolate them, isolate_lru_page() will be called to do the right work. [linmiaohe@huawei.com: fixes per Naoya Horiguchi] Link: https://lkml.kernel.org/r/1f7ee86e-7d28-0d8c-e0de-b7a5a94519e8@huawei.com Link: https://lkml.kernel.org/r/20220830123604.25763-3-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Cc: Naoya Horiguchi <naoya.horiguchi@nec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/migrate_device.c')
0 files changed, 0 insertions, 0 deletions