mm/memory-failure.c: remove obsolete comment in __soft_offline_page
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 22 Mar 2022 21:44:30 +0000 (14:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:07 +0000 (15:57 -0700)
Since commit add05cecef80 ("mm: soft-offline: don't free target page in
successful page migration"), set_migratetype_isolate logic is removed.
Remove this obsolete comment.

Link: https://lkml.kernel.org/r/20220218090118.1105-8-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory-failure.c

index 1597414..e997bfd 100644 (file)
@@ -2167,10 +2167,6 @@ static int __soft_offline_page(struct page *page)
                ret = invalidate_inode_page(page);
        unlock_page(page);
 
-       /*
-        * RED-PEN would be better to keep it isolated here, but we
-        * would need to fix isolation locking first.
-        */
        if (ret) {
                pr_info("soft_offline: %#lx: invalidated\n", pfn);
                page_handle_poison(page, false, true);