From patchwork Fri Nov 17 16:14:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13459127 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 C8D25C47071 for ; Fri, 17 Nov 2023 16:15:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4F65A6B04F3; Fri, 17 Nov 2023 11:15:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 458E86B04F5; Fri, 17 Nov 2023 11:15:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2830F6B04F6; Fri, 17 Nov 2023 11:15:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 12DEF6B04F3 for ; Fri, 17 Nov 2023 11:15:17 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 96EBB1205C3 for ; Fri, 17 Nov 2023 16:15:14 +0000 (UTC) X-FDA: 81467945748.20.12962EF Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf21.hostedemail.com (Postfix) with ESMTP id C359D1C0004 for ; Fri, 17 Nov 2023 16:15:12 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=SY3gTiTV; dmarc=none; spf=none (imf21.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1700237712; a=rsa-sha256; cv=none; b=KkZMD2u7sBITN3Mz+VH5tnqm4dG11W+VIiEm5STyz2XP9HHR1ZxnKh8LYkaiO4AoKBAVzN AnJUTDvTOlMghPpF8YDoEu2/92v1mP/zwDKYBeG0MkrzaFeLRTkWI/zDPXKnDX/c49VYc3 6FR5zDqsZMai0bAsBUQKGUBoRYNP9S4= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=SY3gTiTV; dmarc=none; spf=none (imf21.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1700237712; 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=M8tcrjn8J3mAVtHdNJxXIwwBJZthYabYLJRVFBqKzTc=; b=8BIjqIpg+qkAgG+dCVcDJN9+1VOwanALu03Iy9oGDHXFGUK5ZrpssN15vYS8/FLSmOyKlI N7s/HQKDx3sdQy0hVAYs9AdRzxn3GHekWDgxbcTAStZ8MPuLB7j2Uj2rgaeHW/NtL5aOyh cTaG90w5MLr3KcOvBSjR6NBGi0+TqIc= 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=M8tcrjn8J3mAVtHdNJxXIwwBJZthYabYLJRVFBqKzTc=; b=SY3gTiTV79l8O4Ss4E5KcaLsWw c/mTm3pDFVfZtoPBYeOI0beecuGWq/RPzxAQOtMKbCelZzN/3TKR3vQkSzT2aDOoigBuNUAjEEvmu F8Wu6cCCHyAATta0Ds7kVHMGb+RDA/uuBB7BCvjoMEq5kXZNdyb9GY7XbliXk8LpZ98MJ5Xy9gfYA jRRjGKJykJpmG2CVVyk6Ck1wDPJoz2jKLS0Ou7qByvYLB+H7CzDBjieCW0z1n2/GPDyahenZfS7Nc 21opa64JfAgeDZBGHWVHaDp1GWsZu4ozqjKLxGDNfu2g3g0KXDvwDAk4vBiaiTIAk6nykh3nAxveE OTeL7ONA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1r41Uc-00AKVL-DQ; Fri, 17 Nov 2023 16:14:54 +0000 From: "Matthew Wilcox (Oracle)" To: Naoya Horiguchi , Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 0/6] Convert aops->error_remove_page to ->error_remove_folio Date: Fri, 17 Nov 2023 16:14:41 +0000 Message-Id: <20231117161447.2461643-1-willy@infradead.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: C359D1C0004 X-Stat-Signature: ugoac96tyorkmysuxf4wwpxk59cu3isg X-HE-Tag: 1700237712-888798 X-HE-Meta: U2FsdGVkX18rELREUd4Btqc7YJ5ey81M6LCqQsZRTFMXJE2kKu7i9iY74rtmMcXjG64kHxiyx5AXUpRO4rDNKA7kzsmEDyzYpvSvnPQVyl58AF3fOc+T0Ks5JdRVmQffB7j2g/KfMbAmmtJaYfGinVh7kC0AqkuhP+00CduyhiqDMSwj9KQ2CYx26I5Yw89u3PtxlGiAnu0udFXSjbPJlu1oNhjg+Lhe/cWB/dX1jM8CEUOHnnFJu2wIrBM5ryhW8GpwVQ/tBZQNTRdmtHpcZ11t/APj/0CcbbNyVuhMfXIoSgjwsQopQ+rM/86eTNR3W0ENWWaU+e8WL4876CW8RYSeUYm4Fej7EOnV/5Jqd1EO/XJCqBOL64qCauRuFVkGj5ylGQFgAGjndPg/56G7i94IuXYx4JOttFmq7wkMRnYO44qL2pNXnKLnByhoULbiTLiysvdDzK/qwX7ZO2foirwzetJhoyjVKE++dUi95G1/aOkXoYi1V/CzV4322EzMB18X4ZexvkszaVlwzeC+2UhCp7gaGu2n5ZbBjz2JIn7iy5Dc7+D62IIKevKfAQJCvK5SETQp79otqtj5FwbtNmOEflwRS80nqjkz5jglnRNZgLZbYQiJM32Vxg0MVEVcd5wKoBrm3iqLNkv8+q2Kb9eKVeWfdiRragKsIkDAUocV/vsFOFC5Y8+qh270B2V/8JkctLwnOroiuERNtDKujVJy6ZJ4IOkplWa502hbswFVyaXNPFG+AwVbH+Qa1xEdnDYi7cFGi1UnSE5BmusBU6yA4q7kXex+9tKnSt8Lg/JYLPnMcemUtU7zFBwu5p7iCgIoJ23geGm4tx75y1qKcrsMI+Xgydw98Qfc/Vj29S+eGhCZ14kH4Hh+qrqS1OZ4k7j4C8OyxuOWK1zEi+DpOnVv/Ac8OC/HU1LiViI0kEiICWyBItBN2Vapc0SYIjFQ5gFj7S9oWuIp5BFOENI pX5lARdl TbN2OQsoI36q97E+H/n+5NWXUGUtRSQ6zTyo1Uf9z4l8XxzSCLxuOsdnQeL2I2XEQcs/coy1LkXS2U4bppove/EiY4V0zOFED99gR06Qnx1w5/otkKPmlPhKhT+Bwz9CLyrWXeKVpVmDcoLY6bLhP6Zjv6a/4hVdoHfWK 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: While this affects every filesystem, it's generally in a trivial way, so I haven't cc'd the maintainers as it won't affect them. Really, this is a memory-failure patch series which converts a lot of uses of page APIs into folio APIs with the usual benefits. It is only compile tested. Nothing here should change any user-visible behaviour. Matthew Wilcox (Oracle) (6): memory-failure: Use a folio in me_pagecache_clean() memory-failure: Use a folio in me_pagecache_dirty() memory-failure: Convert delete_from_lru_cache() to take a folio memory-failure: Use a folio in me_huge_page() memory-failure: Convert truncate_error_page to truncate_error_folio fs: Convert error_remove_page to error_remove_folio Documentation/filesystems/locking.rst | 4 +- Documentation/filesystems/vfs.rst | 6 +-- block/fops.c | 2 +- fs/afs/write.c | 2 +- fs/bcachefs/fs.c | 2 +- fs/btrfs/inode.c | 2 +- fs/ceph/addr.c | 4 +- fs/ext2/inode.c | 2 +- fs/ext4/inode.c | 6 +-- fs/f2fs/compress.c | 2 +- fs/f2fs/inode.c | 2 +- fs/gfs2/aops.c | 4 +- fs/hugetlbfs/inode.c | 6 +-- fs/nfs/file.c | 2 +- fs/ntfs/aops.c | 6 +-- fs/ocfs2/aops.c | 2 +- fs/xfs/xfs_aops.c | 2 +- fs/zonefs/file.c | 2 +- include/linux/fs.h | 2 +- include/linux/mm.h | 3 +- mm/memory-failure.c | 63 +++++++++++++-------------- mm/shmem.c | 6 +-- mm/truncate.c | 9 ++-- virt/kvm/guest_memfd.c | 9 ++-- 24 files changed, 75 insertions(+), 75 deletions(-)