From patchwork Thu Feb 29 21:20:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13577666 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 4D9A9C48BF6 for ; Thu, 29 Feb 2024 21:21:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DD4D36B009E; Thu, 29 Feb 2024 16:21:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D5E4D6B009F; Thu, 29 Feb 2024 16:21:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BB0A76B00A0; Thu, 29 Feb 2024 16:21:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id AB6566B009E for ; Thu, 29 Feb 2024 16:21:06 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 8A874807C5 for ; Thu, 29 Feb 2024 21:21:06 +0000 (UTC) X-FDA: 81846111732.26.6C0352D Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf28.hostedemail.com (Postfix) with ESMTP id F1AB4C000C for ; Thu, 29 Feb 2024 21:21:04 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="o8A/FOZB"; 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=1709241665; 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=uN+KQxTws34FfZlK4e1toCcvA8A+2Ue6rv7aarieYd4=; b=7btECZZ8aIbugC4YSI99rCnHisPbNyABg0js0ZgNvlx4YvC027Tmi7tUADzALvh6I7IOvM niRGIM9Tr9Om7ByD4ysB+Rof5xTuR5vHwGmKFaUeYqpzumQZATrgpqP2Uan8RbmN4fdTRz SOVI137OlK1E8cl5oMca7dGTF5+DQPk= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="o8A/FOZB"; 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=1709241665; a=rsa-sha256; cv=none; b=YWKo28jsgDua+o6wCL+HiYl6xvl9IYUI3+aOCpBtN9NHuwn/D2GV3382vAbZ9V5TCtdjfK NS7sTvs0qZ3ZAZyXUS0Qed0nHJpwogdEMaQTBkIk0NiiNF94BE+VQZoX35mRmK9Rq1R2ce yW7JTiXOVE45rtJCGiPQU97bNtlMp0w= 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=uN+KQxTws34FfZlK4e1toCcvA8A+2Ue6rv7aarieYd4=; b=o8A/FOZBht5XH5YmRrdVlyqpol 7ISUWpRhuHMOhqcRy9B2337V1hpGjhd8VJXtsB2lXpuBk7mTiUU8q3SrD109nBUtGRW4ezVUf231t rvA6XtIgIO94FeGGZZeTgC6PAko8tiJA7URdieO+eEEnS31Q3sO/TqRghsDSapj4zmLErj9jI5bOA Av4M+G0uUPb6cx5WOw9CZRVqqTEkKv1YhdCCOLxNGduVp77QLt/VvKdkY+b7om610CVYvVT8/iEnR ysdE7COLYP9Jki9jobHBtLleHsmIdaFSY00WjhYsL1iuRgNGisPbzY/U4b+P1klxlt2Yh0emJZ5xC f34+LQVw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfnpV-0000000949T-27nA; Thu, 29 Feb 2024 21:20:37 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Miaohe Lin , Naoya Horiguchi Subject: [PATCH 0/8] Some cleanups for memory-failure Date: Thu, 29 Feb 2024 21:20:26 +0000 Message-ID: <20240229212036.2160900-1-willy@infradead.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: F1AB4C000C X-Rspam-User: X-Stat-Signature: ctpcs6biyenxinqe1nzns6zokhn9n9i9 X-Rspamd-Server: rspam01 X-HE-Tag: 1709241664-633964 X-HE-Meta: U2FsdGVkX18lHAaEu9k7D5sQ2wpjHUuYgSqJ1qrLGig9WHV6hlpmFghyCAAeMB4qTt70UCHneacSeQsv9WHdLJryZISBMXHW6KZFMJakE6JU9Yu3k3geWsrq3t85O7bPeGK22SXIo7bKNev9jaPmBNM6BbeaQHArOtHS90Em+DYblOBfg1CfyUTFQ+pD0IOzl1IOeqyPJaRoobEI5eDN7zZlMWz0xCU7B76ZC4T20SE41z1f/Ef6IZrvmMM/q6hnZlKtO7TQNZhEm0UnkP8p+AU5eYMh2MnNcWYQV5+6hwbTHD4PpkVLSk5mY6iNeNipDmlasOGWUFmsk2lTvgdFmaNJJZkVxrPuVWUFT2WIYX1bxbMQ7AyqS1ccfqEqSCGH2AogqmOzcFOt+h2+4TIzMi0i/RMR2CN1rPD3gnjsM6w4GXJL2sS3mYtJ/w3g9GBrIee6EE4HHH6Vi+MvtU0zFqUvvgBdfYeGkSZbYBigIaX9/ADj/Wsg9tNQG9lqMH+bXV+s40TtPkQ4PatkHSjZa7Puom8gl7vsGy5bcrCRw7aXUtmEFq2+dyn9wW3WAdZfplyjnUlQCvkRPedKRfb73Jet/u3RmTCPWxMfdNrdF+Ltj05QbSrwdIqgwdzTuCmXTXvjyUR/WJmq9fATQ8mqsK6NCEKuu1b8nJu6Ljz+7YnwhiAwt4l8dQNe4mPAAMvWpsl5cR+cGXFCtHFbAgjZ8AzzJJ1ei8LlvQ128pu+MtVgb34Rra46HwhXwseMUIL1u61fLZXOrYfzQfx9qXsT0ZxgDvTbhHwG2SG5DBxX7N+G/wIGQ1eglNG/drcS7ykF3pJ8pe+BK8cKTom0nYE2mGHtdjJrw5cm0DuKASaFA6GklLcqpQxCeUauGApTNUkz67n+swzqvPJcUHjXl8CxCgUjPK/f/IKqGpA85YdH6PxFtM/kmvShSNBE0/NhbZnGfBoyNXPiATZVlk9SeZC NgAbVWBP uYXnuvPRS6xtSagIVrcnZn43WAq+wxjiQC4vE6pRwxu9blNSzBsO4ZwGmertlH7vZ/yNENf0t3zUAFLZra2ztxgH1vYfiWayNMqjovM3H+uTfvVuxK2mfRzr2cg== 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: This isn't my complete collection of patches to memory-failure, but they're the ones I have the most confidence in. I haven't done any real testing of this beyond compiling & running on a system without trying to do any memory failure injections. Is there a good test-suite I should run before submitting these kinds of patches? Matthew Wilcox (Oracle) (8): 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/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 include/linux/hugetlb.h | 6 +- include/linux/mm.h | 1 - include/linux/rmap.h | 2 +- mm/hugetlb.c | 6 +- mm/hwpoison-inject.c | 11 +-- mm/internal.h | 1 + mm/memory-failure.c | 144 +++++++++++++++++++++------------------- mm/migrate.c | 2 +- mm/page_vma_mapped.c | 14 ++-- 9 files changed, 97 insertions(+), 90 deletions(-)