Skip to content

Commit cde31ec

Browse files
xieyuanbin1-huaweiakpm00
authored andcommitted
mm/memory-failure: don't select MEMORY_ISOLATION
We added that "select MEMORY_ISOLATION" in commit ee6f509 ("mm: factor out memory isolate functions"). However, in commit add05ce ("mm: soft-offline: don't free target page in successful page migration") we remove the need for it, where we removed the calls to set_migratetype_isolate() etc. What CONFIG_MEMORY_FAILURE soft-offline support wants is migrate_pages() support. But that comes with CONFIG_MIGRATION. And isolate_folio_to_list() has nothing to do with CONFIG_MEMORY_ISOLATION. Therefore, we can remove "select MEMORY_ISOLATION" of MEMORY_FAILURE. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Xie Yuanbin <[email protected]> Acked-by: David Hildenbrand <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Acked-by: Miaohe Lin <[email protected]> Cc: Liam Howlett <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Naoya Horiguchi <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent b4c9ffb commit cde31ec

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

mm/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,6 @@ config MEMORY_FAILURE
748748
depends on MMU
749749
depends on ARCH_SUPPORTS_MEMORY_FAILURE
750750
bool "Enable recovery from hardware memory errors"
751-
select MEMORY_ISOLATION
752751
select RAS
753752
help
754753
Enables code to recover from some memory failures on systems

0 commit comments

Comments
 (0)