From patchwork Fri Mar 7 13:54:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 14006515 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 6C981C28B25 for ; Fri, 7 Mar 2025 13:54:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1B93F6B0093; Fri, 7 Mar 2025 08:54:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id F04486B0088; Fri, 7 Mar 2025 08:54:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CE20F6B0098; Fri, 7 Mar 2025 08:54:19 -0500 (EST) 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 46ACE6B0089 for ; Fri, 7 Mar 2025 08:54:19 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 448A3C0B95 for ; Fri, 7 Mar 2025 13:54:20 +0000 (UTC) X-FDA: 83194899480.17.8B278B2 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf12.hostedemail.com (Postfix) with ESMTP id B79EC4000A for ; Fri, 7 Mar 2025 13:54:18 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=P2q4tSdD; spf=none (imf12.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=1741355658; 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=+taT2QSuxL8BkaKw5rATlyAdw/O8TmblfYyY8TlzKtQ=; b=TSng72EPNUlHnlF1QlFisACg8k1H4P1dnNmS3bX5CO0KSYSVldmDZRFZNALULKL2gQgxni 1/IB+rmFLOzL9IJQR6xmqKTDooKGq+Ps7ya13snXaK2OXAHVOwKZUsWDsLH+iB6MP5ug3J b74B19avmuqFfwjgKDcgehqM/thG91s= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=P2q4tSdD; spf=none (imf12.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=1741355658; a=rsa-sha256; cv=none; b=KtUgbCWemr+mlz8uy8Fb8iMVnXTd9DpSkumoORiVNz3Dd617GqlNv8kZsrB/uTuh4+zuCj +pwx/CG1XFcW3AXcHp6jrGKog6SAhOiYm2FcdsMy3I6DblLrE2w0/QYF+/U4kj0ZRZH3a+ 6FzjEcXpw3FUdSNneG87b+a+Tngw4ew= 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=+taT2QSuxL8BkaKw5rATlyAdw/O8TmblfYyY8TlzKtQ=; b=P2q4tSdDk1vTyS4yQ8UtnlEgiT rTSbqcb1hggXVwczLfNokNr5lTyrPEmcEg9r2Fiddr8Ss/ztL1ISAkKwd3Xp1h1AdltBA8yHGj0zq fAN0Aafq6BV5Vzl0gPlbyi25y20AX4pC76CprIgFG86Uo0cmkBkdXFm0Du0za+Tvhkb6/RPJ3uDXo LtkaIPnCP5Q8dWNheEuAj2hBm+3seeDOOjbHCSXry/3tcU9f/goxuo4P7bpoQ5glrzpezR87yhSwN 3RxFVJGiIlAO3KufL58simBwsjQ9qquBDzYKK5vbatEuLXrmO5uy8zipnmf78uNCrh7kCDzmgrsFg cGvenHsA==; Received: from willy by casper.infradead.org with local (Exim 4.98 #2 (Red Hat Linux)) id 1tqY9X-0000000CXFp-1xdu; Fri, 07 Mar 2025 13:54:15 +0000 From: "Matthew Wilcox (Oracle)" To: linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, intel-gfx@lists.freedesktop.org Subject: [PATCH 00/11] Remove aops->writepage Date: Fri, 7 Mar 2025 13:54:00 +0000 Message-ID: <20250307135414.2987755-1-willy@infradead.org> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 X-Stat-Signature: yiu45arj5md6rqboi1qy67qtyyjbxujo X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: B79EC4000A X-Rspam-User: X-HE-Tag: 1741355658-295327 X-HE-Meta: U2FsdGVkX1+H0cxQwyDYIrmt1StdO/+qHCgSWIlTjLg0K8Hs7QfNOVwH2dDzCmpFSliJUjU2OaswTL15ZNk5f/Sq0pXUXixsWrnL4SOthfwDVta9Sq+r51CM3SfJvtO1YWvdKKo/tSvzydRl4a2U8Z6a+YQKJ7z+EyeNGfevoFlt9uWNJ2jRwYXtj76ZikxallvY6FafcRjJKGZ9rva9tngH0L65yV3ytWsN+id2ZXHh7UZla/mQ4AEEXwlt8xO5DKGyF8V8EyCBrS0xPovJdKVDlBMU5uQoLq+7nGEUzXxv7iR+RN7sj3hiaw7O0X16deMrT3y0wVpWKjMPAQWt9kRqYklkLmHImzYB3B6p5Bu+M4LK8Tih7OYJ8Tn9i8NLI1AVZTWdUF4T35SSULGRYp+sIq+jWaUNTDfxJhysrwuag30SBJNPY7EyQ6tu5UXfToQ1YrFEh6OhR8+7SZVHyieBcEoGqE9JpZvcfTvNXD9v3ovWm3vdTHdWR4ZqikYw5+efH9TgMqBEzPNe/CxNOVx/gURECjOCZRmpp09KEm+zeo40PnfqmNWRzFW8e6VVa/VdrTSBTOeGZnVA2WWe8Tg+O1YI7kgKoxDGFZoevdOUM3xHsWb+VtaYRV6pKcY0oDxs4jJztKw/AuxFr460ev+zuhmkX6P2Ujox5s1Xr0V1+PdrtLhDzs32cWM5hj6KCeNJzkEd86PAHPA/ju66bqbdAo/UKLnSS1Fz3Atyas9oOpG2deungAOXi9MZG789flqMQYP12XJMp7VZ/S86XOjsdOXiXMAL9x1bReeeJdNmtDy6fvUIq3InYyzhRgaVlIQgM4XYwo+0Gt2hV6hPj+9Mn5Y8wdcDnW14+N4SutE/VJB+fsyCbNQRjLDHj1uNNCg+8M1b4xTT2tIivw4819AZFWtM4zU69PM7JLaSiCtAlvavKf4B7qit1a6pDLuJEG3vwVVt1LX1v9rlw5o fPzduPKj dGwc3isOGZ26KO2yPvPHsh3LEUc8YLPc7d/m2glLwacHTnen/oQlGHuTa2uFxAlyp+Z6MbUUC6BReOSxP8twE4sg0mUs9axa1nDe6e3snfD7IYRfcSesWBI+Rxn3mTozu0El/rgzk/qLUzLCirGEesJY0m4p2IL9MVISB9Uo0WbDKmGTGLwCKwMraGQ== 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: I was preparing for LSFMM and noticed that actually we're almost done with the writepage conversion. This patchset finishes it off. Something changed in my test environment and now it crashes before even starting a run, so this is only build tested. The first five patches (f2fs and vboxsf) are uninteresting. I'll try and get those into linux-next for the imminent merge window. I think the migrate and writeback patches are good, but maybe I've missed something. Then we come to i915 needing to tell shmem to do writeout, so I added a module-accessible function to do that. I also removed the setting/clearing of reclaim, which would be easy to bring back if it's really needed. Patch 10 is probably the exciting one where pageout() calls swap or shmem directly. And then patch 11 really just removes the op itself and the documentation for it. I may have over-trimmed here, but some of the documentation was so out of date it was hard to tell what was worth preserving. Anyway, let's see what the bots make of this. This is against next-20250307. Matthew Wilcox (Oracle) (11): f2fs: Remove check for ->writepage f2fs: Remove f2fs_write_data_page() f2fs: Remove f2fs_write_meta_page() f2fs: Remove f2fs_write_node_page() vboxsf: Convert to writepages migrate: Remove call to ->writepage writeback: Remove writeback_use_writepage() shmem: Add shmem_writeout() i915: Use writeback_iter() mm: Remove swap_writepage() and shmem_writepage() fs: Remove aops->writepage Documentation/admin-guide/cgroup-v2.rst | 2 +- Documentation/filesystems/fscrypt.rst | 2 +- Documentation/filesystems/locking.rst | 54 +-------------------- Documentation/filesystems/vfs.rst | 39 ++++------------ block/blk-wbt.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 32 ++++--------- fs/buffer.c | 4 +- fs/f2fs/checkpoint.c | 7 --- fs/f2fs/data.c | 28 ----------- fs/f2fs/node.c | 8 ---- fs/vboxsf/file.c | 47 ++++++++++--------- include/linux/fs.h | 1 - include/linux/shmem_fs.h | 7 +-- mm/migrate.c | 57 ++--------------------- mm/page-writeback.c | 28 +---------- mm/page_io.c | 3 +- mm/shmem.c | 33 ++++++------- mm/swap.h | 4 +- mm/swap_state.c | 1 - mm/swapfile.c | 2 +- mm/vmscan.c | 29 ++++++------ 21 files changed, 93 insertions(+), 297 deletions(-)