Repository navigation
Commit 0efadf4
mm/hotplug: enable memory hotplug for non-lru movable pages
We had considered all of the non-lru pages as unmovable before commit
bda807d ("mm: migrate: support non-lru movable page migration").
But now some of non-lru pages like zsmalloc, virtio-balloon pages also
become movable. So we can offline such blocks by using non-lru page
migration.
This patch straightforwardly adds non-lru migration code, which means
adding non-lru related code to the functions which scan over pfn and
collect pages to be migrated and isolate them before migration.
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Hanjun Guo <guohanjun@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Reza Arbab <arbab@linux.vnet.ibm.com>
Cc: Taku Izumi <izumi.taku@jp.fujitsu.com>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: Xishi Qiu <qiuxishi@huawei.com>
Cc: Yisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 85fbe5d commit 0efadf4
2 files changed
Lines changed: 23 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1531 | 1531 | | |
1532 | 1532 | | |
1533 | 1533 | | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
1538 | 1538 | | |
1539 | 1539 | | |
1540 | 1540 | | |
| |||
1545 | 1545 | | |
1546 | 1546 | | |
1547 | 1547 | | |
| 1548 | + | |
| 1549 | + | |
1548 | 1550 | | |
1549 | 1551 | | |
1550 | 1552 | | |
| |||
1621 | 1623 | | |
1622 | 1624 | | |
1623 | 1625 | | |
1624 | | - | |
1625 | | - | |
| 1626 | + | |
| 1627 | + | |
1626 | 1628 | | |
1627 | | - | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
1628 | 1633 | | |
1629 | 1634 | | |
1630 | 1635 | | |
1631 | 1636 | | |
1632 | | - | |
1633 | | - | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
1634 | 1640 | | |
1635 | 1641 | | |
1636 | 1642 | | |
1637 | | - | |
1638 | | - | |
| 1643 | + | |
| 1644 | + | |
1639 | 1645 | | |
1640 | 1646 | | |
1641 | 1647 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7227 | 7227 | | |
7228 | 7228 | | |
7229 | 7229 | | |
7230 | | - | |
7231 | | - | |
| 7230 | + | |
| 7231 | + | |
| 7232 | + | |
7232 | 7233 | | |
7233 | 7234 | | |
7234 | 7235 | | |
| |||
7284 | 7285 | | |
7285 | 7286 | | |
7286 | 7287 | | |
| 7288 | + | |
| 7289 | + | |
| 7290 | + | |
7287 | 7291 | | |
7288 | 7292 | | |
7289 | 7293 | | |
| |||
0 commit comments