From patchwork Fri Apr 12 19:34:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13628288 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 0482BC4345F for ; Fri, 12 Apr 2024 19:35:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AB69B6B009A; Fri, 12 Apr 2024 15:35:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A68096B009B; Fri, 12 Apr 2024 15:35:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9553C6B009C; Fri, 12 Apr 2024 15:35:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 763146B009A for ; Fri, 12 Apr 2024 15:35:31 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 4ADADA0F68 for ; Fri, 12 Apr 2024 19:35:31 +0000 (UTC) X-FDA: 82001884062.08.C08A75D Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf29.hostedemail.com (Postfix) with ESMTP id BE8EA120003 for ; Fri, 12 Apr 2024 19:35:29 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=XaMQtzV6; spf=none (imf29.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=1712950529; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=MTzQoQkr9UpdcZdW5zZu1SUoW349YvEQpNgPb0i7AmU=; b=gaEOIrINV7zSn/HGZiR+FzBfeSTcoZXt9nct/pR/GVMjgEysxhizepu1VN/JQ5y749fTAt PIQEzdikGng92Fen7Jwg5H1F+d5cfd6ufoE7qzqK3K54UqSj/EdPzr6ZIsNgwBfzYeP8yz +b73RzN8UfSyKIlytGagn7zR963mivo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712950529; a=rsa-sha256; cv=none; b=uoxLtIFMDaS3eqW7Pxd+CQwIMyGmCqajwJnkKu+F3a43Yu8ABnCuGXS1BYVQV5fC+CSuc0 tBRFF4m4MBG6tDvIjsUL+NTFrjU3cCCrkBgQ6cQuhxZpSo+uERL4NFMi+lutk5cUWF/Y5L 7Q03upBaGbKo92hTfV1DgljFS+ng0GM= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=XaMQtzV6; spf=none (imf29.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=MTzQoQkr9UpdcZdW5zZu1SUoW349YvEQpNgPb0i7AmU=; b=XaMQtzV6x816PHegPDVAk66b+i FRKk4YleePoInamtcK3btpOcE2mRQ6nMIBuHG+SmpeikTxAHJmHaRsQMCyNLcNuXLRP7xbylbzv7W NMPIRT9r+EFwu25s6dkBt/HF3/r9GFER9qvB8OzuqrepWwnJja/TKDfn3DNVRhu+BaIUsBDgSvSu/ UcjWSDfcDZefoX5qqeui/L9NDOjXQRidt1rIM4dCOhpzS2AW6F39uLT6DBO1x0WJseVoLB3DOlkle PSFVDGsiPHxEDiCEklwzp34Rl/2zVcrpS+KRzZI7bfZHfogtR2fgiEzvLknDTawGlbmxeSJtRl4BY 9g24tIQw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvMg3-00000009t9c-1uN5; Fri, 12 Apr 2024 19:35:11 +0000 From: "Matthew Wilcox (Oracle)" To: Miaohe Lin Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org Subject: [PATCH v3 00/11] Some cleanups for memory-failure Date: Fri, 12 Apr 2024 20:34:57 +0100 Message-ID: <20240412193510.2356957-1-willy@infradead.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: BE8EA120003 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 9ikw4pjoabb68ga3ogxhqhjigy7i4i7j X-HE-Tag: 1712950529-402724 X-HE-Meta: U2FsdGVkX19/rzJEXLIKNNpJPJT9nsClL9ihW2qExb5rpKr2tOQfgisUdIZEaTaU1ZdcxOeLuiLCsCMLQrp4nVPV5X93G18jVJYBGLsouTiCCgSoOgQQI3WeyPUW4nqE3/WOXRudtG0cK8vEpZ3aDW46DJKM9ACQT0U9GjfHs2dUm/FKREnZG2Vv0qE5X/WmMnPRf3oEgBGXu5pcoXkvZA5EIKU6ILxJWToa8YkGHREe9bLBAxKLkudJp3XM6sXdHDXFFOwZYCFn08DtOFkpFwhOsXDPDAS0JmrixvailYJxnHHxx2/YocmqpuuG/Qwg4Ou8RKd18O99htIK1DHnYQNjfhVmdpL46yYKlU2yw40zRGSdYCr/movDwpbagK2R3gtoCuZm54cS8Lf66CGPNBFBKYWmpbVjZQxFRbhmc09CyL8S8+czClClnDCFKO2p1pdojNvEHxC3Al4yFY5Tx3DXG980eJ18eFNMk2mAH/HfRCpQKk8weRLG0hDHiWJiMcO16684jGnixm+cSMHf4FLKsEcUx4EeYDj9NH58cN6BEC44edZjA8SWY7ZyGsFBkCcxcp5hwTFyGMhtM0tUGdXiy4XOnS2iC83OyifNUcwufTdLQyZfp1UwTq9jI4EVA+yS06b3GSbhTQ5L/V3ttcFaxxYsaQvyyv8Xb2EGN0UShQWTAhRIVuKdaa5PR+5h0xWDB8yiNFQZ3uC4+TY8f6N/j5Gv3L7EH5uyz+VcwFdGF4DZDx9MVyev5CeVrrVg7SvAzDf4LXMzeLTFNbuviw3DmyexiY5mkjMTXQXw0Xb/69ftuEeNDunyHoAxjhON3DXFU6LQsZMp3fDcsA78JVUFj0gEyOXp9dL6WwiKN0iJ3M0G9WjOia4bjMAJAfYQZXVGgUXcycHGlqyqKmi1IBsPC8MAQmkBTXz4xXYuB0HW+0NZE0KT9GytwG2Jb4LbMkpJBAGUa0oMLcXBowf JYBb2Fsb sYQVV83A5gY5+uoylRz5xskN4kBLooJOrFXHeGhgtMIFk7rq1KJqXM0wEA6NGHRCR4X+YZ5q+tpKfxO+PiKTGM/XhPlXSyL0rRNhYfl853LHzXHVW+5DR6elOH9zFDpXJaTYZ 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. v3: - Rebase on next-20240412 - Reinstate missing hunks of "Return the address from page_mapped_in_vma()" - Accumulate R-b tags 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 - include/linux/rmap.h | 2 +- mm/hugetlb.c | 6 +- mm/hwpoison-inject.c | 11 +-- mm/internal.h | 1 + mm/ksm.c | 5 +- mm/memory-failure.c | 150 +++++++++++++++++++++------------------- mm/migrate.c | 2 +- mm/page_vma_mapped.c | 18 +++-- 11 files changed, 108 insertions(+), 108 deletions(-)