From patchwork Mon Apr 8 19:42:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13621547 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 264DACD1296 for ; Mon, 8 Apr 2024 19:42:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BEA296B008A; Mon, 8 Apr 2024 15:42:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B99BF6B008C; Mon, 8 Apr 2024 15:42:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A62E56B0092; Mon, 8 Apr 2024 15:42:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 861196B008A for ; Mon, 8 Apr 2024 15:42:44 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 4BBBA400BD for ; Mon, 8 Apr 2024 19:42:44 +0000 (UTC) X-FDA: 81987387048.17.D59F1B9 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf28.hostedemail.com (Postfix) with ESMTP id F230AC0015 for ; Mon, 8 Apr 2024 19:42:42 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=G2gJaCKw; spf=none (imf28.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712605363; a=rsa-sha256; cv=none; b=0GupsuMerAcVYswDyIRlQj3+XNu3/0jWEsYKAcqV0/D3eXV1HbuLFH09sZHgYom5DluJPk dLLtg1j2fkOhINhnMBbsHkUbAKmb24fq7SIVnbdLzHYTeSR7H7wAIkixiIIhm0kmw/lvSP XKQcMu69gFPQE2tG/f+mWKsIf63DSdA= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=G2gJaCKw; spf=none (imf28.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1712605363; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=2NPlbtaVOM04jADnpfYJuaVSpkJkTRgmS9m5lhiMWNs=; b=MpNWuSoDhulLv2ufAEs6s00OcCYdSV0X7eDtUKeOZI9Kyl88JiYUQrIdPzfxoeGLA+V/Vb ZHpN55k7jjIj/C3FwkRScAFfF+4tfVW2JmMx6WIzT+A+sKF3othzzWZYjFjuQP/IURsUaL 6yWYTVjIcBpniXw5tCadYkJN4HwmS3M= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=2NPlbtaVOM04jADnpfYJuaVSpkJkTRgmS9m5lhiMWNs=; b=G2gJaCKw0QCovMEZXfGTRaLDuX zxgpcodPMld5X0xfeem+UpX9hiHXj9J+0kr4SCjjFMnz0uWTT8NIFvLNJ1nfNDUoxYIoui3iVKXoK 9dY7G+LNWRx63/iiaxErABeHfKUB75CkPTysO9KcXRuUAGZVvO/YxxNFlQH90QvJdNbuLtwsaSgxY bpSB30JzLMGQwRfgaqAohSCM+0zIBLYqqehlYwIMMJcmjwwI2Gn4tOV6lpO6Hcn5v6IVOG3DYwFGA l64jDVcE9P9TslQeVEHS0sEHhp1ozFUm7E69bX8+5RGh3uc58EFK7o0wLSZk7ivQzoIWtZSsBQM2o lgamxxlA==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtut0-00000000Uq7-0eLB; Mon, 08 Apr 2024 19:42:34 +0000 From: "Matthew Wilcox (Oracle)" To: Miaohe Lin Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org Subject: [PATCH v2 00/11] Some cleanups for memory-failure Date: Mon, 8 Apr 2024 20:42:18 +0100 Message-ID: <20240408194232.118537-1-willy@infradead.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: F230AC0015 X-Stat-Signature: iiec7koyatwt3ks76swbruc8o79y68qp X-Rspam-User: X-HE-Tag: 1712605362-707850 X-HE-Meta: U2FsdGVkX1+j+ieS3b9CYKfi0OaiKaJZhvJtpCs77Vp5Y5sBQUfudvPdzNze51xySbdzkWo7aOis5rBymnp992bqddbWootnD2vrY5Mk8m97qsGoMaDWBeaznsgzSokn56mXbDjHZV0C9LycO4Woq1gOzorq7j35ylH8dn/zAHi4jWAJmHmLeN6rfkNHQexnP0KPgvdP0Yb2VPVw7XYMoi1sVkB967H7TwFOtynMqpAfFegt1fmgRpXTH0JH441hanemB3cJyi4bFFtS7UfgeTTAQec/Js3hyCaab88IEiEcyAF4ZpxRBtCtNFhU2iA8qY7a9xfl5sk7QHd8LsIyjWWEO0KCAX1PAVvJXn7w9m+KzB3ZnUMo/X09xHvI9/NSA9E8dQMefe1hVQN83t4eFZgDW5wYX+73ozonxwYOYFxS9yffFrZwg/iS8g2ibCo8na3Hwot7JAOClGgf9kpLVnzW5U9UNSBkuJ1/patY+glGRfJWBZzDx/9PVvRlQOWScpefOd8WVwTEBxSkfAgb84wnLKeQfU804MgUuqKI00vh7ozBZwnUVdQCnOiAy2O+vuZbZK7/aT8P+nAyDWUTtzWIrpIoTDssyfVasr4CFwQmr/5si9QtWst/IY3O+0NrNf/jzsvrnF2JZT9fBH5njw2OP4Fp13/SvZ+XPmJptNET0HKU4zIsCtcPTTicwUw6urtC4QZmIJ5fNo4Os1+VsnapQg1NopMgS7DjxraijWmZi0AARfGSBzqVGWMyeVTMhF7oOfWXZ/4mWTVzPyEhyLAOd7Y3Q0H56P9BGkZeJ4BSO0eEzSISHRUFmTo8082kdKfuEsr52XafyOifEgp9F085pRdXES6v16Zah0PBMwJW1Lr0VitnQg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: A lot of folio conversions, plus some other simplifications. Matthew Wilcox (Oracle) (11): mm/memory-failure: Remove fsdax_pgoff argument from __add_to_kill mm/memory-failure: Pass addr to __add_to_kill() mm: Return the address from page_mapped_in_vma() mm: Make page_mapped_in_vma conditional on CONFIG_MEMORY_FAILURE mm/memory-failure: Convert shake_page() to shake_folio() mm: Convert hugetlb_page_mapping_lock_write to folio mm/memory-failure: Convert memory_failure() to use a folio mm/memory-failure: Convert hwpoison_user_mappings to take a folio mm/memory-failure: Add some folio conversions to unpoison_memory mm/memory-failure: Use folio functions throughout collect_procs() mm/memory-failure: Pass the folio to collect_procs_ksm() include/linux/hugetlb.h | 6 +- include/linux/ksm.h | 14 +---- include/linux/mm.h | 1 - mm/hugetlb.c | 6 +- mm/hwpoison-inject.c | 11 ++-- mm/internal.h | 1 + mm/ksm.c | 5 +- mm/memory-failure.c | 130 ++++++++++++++++++++-------------------- mm/migrate.c | 2 +- mm/page_vma_mapped.c | 16 +++-- 10 files changed, 94 insertions(+), 98 deletions(-)