Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2623498iof; Wed, 8 Jun 2022 08:41:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqoPECx5l+7fwEHlw6EPNxAKJoFc4bgj/xWU2gcfU5WgWr7TmSIWGisy+EOLPOUqFRAgys X-Received: by 2002:a17:90a:aa8a:b0:1c9:bfd8:9a90 with SMTP id l10-20020a17090aaa8a00b001c9bfd89a90mr38506734pjq.118.1654702903344; Wed, 08 Jun 2022 08:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654702903; cv=none; d=google.com; s=arc-20160816; b=z3Nr0VrkLu9x0sUde9SbAEQABjbO7G6AtnFCff1WzYvL8UAZTfeYQI3LdHH4UuGlf3 OkjvaQsZImvbx1DeSCAOnEjR5y93bF0Ax/GUrkmlPUOeKvkDOFz37V6Qb+bb6QucsnC4 fWiHZoyqS/6nWWhkd9Na7Oe1D2Sda9wQfaakaaS4FbHyGQLlWiS9eUClIehfj1Azgzr+ L1ZIJgKYDpdb2DfbdNmygUKJnSfJDS3ng06KotqjGw4Pw/T42k5obPNQ6LH1XL+k6jhC Ryr447K9I/7/rBdxNkcGwzdopZaaQp41xtyKZ0km/Wn+BL9ByoiWh6oDOJziYLRp8VNM uakw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=C8q0R+e/rBy0+WV0269yeWJ3JYLa6mvxcMU049tzAMQ=; b=boDe+bJhKqzOHFlRIJLKCn30l8WzGkJAmF1UTuEulNmT+9acmeTNDyeY+wWFrXC157 22ykAtiZsUQbwLNOGcvdwGZRmkN2J0/HZxSXmLtM9VnEl0838UmdTeg/A/nDjbP/8FMC u7tetnJLiBPRRzXCj6xu63+wMjEAIOYcYAlLTfkrpDsZcjNHDzgTTpL4joFD4uJgqV8Z fmeqqXRlIVzOiarwsNzU3jhqjvzCsvJbxQAFGcTcv+tgekiYBn9/tD784fl4DpdKD572 Y8FL1P5wcOUdl8Nze5c6hpPpA3DpCyHJ2b8EIHcPsnqQ2WbhCYUJD6EzrztgXEConcLt dL6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="CS/ArOOF"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id je12-20020a170903264c00b0015f45278c31si25535803plb.233.2022.06.08.08.41.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 08:41:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="CS/ArOOF"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C743BEFF01; Wed, 8 Jun 2022 08:12:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243789AbiFHPMs (ORCPT + 99 others); Wed, 8 Jun 2022 11:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242454AbiFHPLq (ORCPT ); Wed, 8 Jun 2022 11:11:46 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 973184A0032; Wed, 8 Jun 2022 08:03:26 -0700 (PDT) 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=C8q0R+e/rBy0+WV0269yeWJ3JYLa6mvxcMU049tzAMQ=; b=CS/ArOOFgUazhgBuVIhXoz92Iz tLP1+UzjBKtIQ7Dy/5NVLgAnvWWvYfAukTChPBXBJHel7m/rRcIG1jTO3m2SVgS4dQ2RCnrpnI/2B 9iKrigIdgG1UysTmv8VlwqX324N8NrztRT9jaBzDbk+mLDdYbNW5pr4mZOlj2VneHAgPoio17IYwj m/4vzv2MBPDQc303p8MvgJU+5ViW9y/S2mis6sPjvcMV3XgTzYLKOwdVsPPuf7dw1p/zkAkFsZwEO lx/oyhsuVa0FzBkMKs3shdhPr6iBtAans8vQe+2EUQiQ7GyfqEuQkKrwSdQNjedKZMBZwIoJM8JrF UgeRmSEA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyxCt-00CjFE-KF; Wed, 08 Jun 2022 15:02:51 +0000 From: "Matthew Wilcox (Oracle)" To: linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-aio@kvack.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-mm@kvack.org, linux-xfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ocfs2-devel@oss.oracle.com, linux-mtd@lists.infradead.org, virtualization@lists.linux-foundation.org Subject: [PATCH v2 00/19] Convert aops->migratepage to aops->migrate_folio Date: Wed, 8 Jun 2022 16:02:30 +0100 Message-Id: <20220608150249.3033815-1-willy@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org We're getting to the last aops that take a struct page. The only remaining ones are ->writepage, ->write_begin, ->write_end and ->error_remove_page. Changes from v1: - Remove ->isolate_page from secretmem - Split the movable_operations from address_space_operations - Drop the conversions of balloon, zsmalloc and z3fold - Fix the build errors with hugetlbfs - Fix the kerneldoc errors - Fix the ;; typo Matthew Wilcox (Oracle) (19): secretmem: Remove isolate_page mm: Convert all PageMovable users to movable_operations fs: Add aops->migrate_folio mm/migrate: Convert fallback_migrate_page() to fallback_migrate_folio() mm/migrate: Convert writeout() to take a folio mm/migrate: Convert buffer_migrate_page() to buffer_migrate_folio() mm/migrate: Convert expected_page_refs() to folio_expected_refs() btrfs: Convert btree_migratepage to migrate_folio nfs: Convert to migrate_folio mm/migrate: Convert migrate_page() to migrate_folio() mm/migrate: Add filemap_migrate_folio() btrfs: Convert btrfs_migratepage to migrate_folio ubifs: Convert to filemap_migrate_folio() f2fs: Convert to filemap_migrate_folio() aio: Convert to migrate_folio hugetlb: Convert to migrate_folio secretmem: Convert to migrate_folio fs: Remove aops->migratepage() mm/folio-compat: Remove migration compatibility functions Documentation/filesystems/locking.rst | 5 +- Documentation/filesystems/vfs.rst | 13 +- Documentation/vm/page_migration.rst | 33 +-- arch/powerpc/platforms/pseries/cmm.c | 60 +---- block/fops.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 4 +- drivers/misc/vmw_balloon.c | 61 +---- drivers/virtio/virtio_balloon.c | 47 +--- fs/aio.c | 36 +-- fs/btrfs/disk-io.c | 22 +- fs/btrfs/inode.c | 26 +-- fs/ext2/inode.c | 4 +- fs/ext4/inode.c | 4 +- fs/f2fs/checkpoint.c | 4 +- fs/f2fs/data.c | 40 +--- fs/f2fs/f2fs.h | 4 - fs/f2fs/node.c | 4 +- fs/gfs2/aops.c | 2 +- fs/hugetlbfs/inode.c | 23 +- fs/iomap/buffered-io.c | 25 -- fs/nfs/file.c | 4 +- fs/nfs/internal.h | 6 +- fs/nfs/write.c | 16 +- fs/ntfs/aops.c | 6 +- fs/ocfs2/aops.c | 2 +- fs/ubifs/file.c | 29 +-- fs/xfs/xfs_aops.c | 2 +- fs/zonefs/super.c | 2 +- include/linux/balloon_compaction.h | 6 +- include/linux/buffer_head.h | 10 + include/linux/fs.h | 20 +- include/linux/iomap.h | 6 - include/linux/migrate.h | 48 ++-- include/linux/page-flags.h | 2 +- include/linux/pagemap.h | 6 + include/uapi/linux/magic.h | 4 - mm/balloon_compaction.c | 10 +- mm/compaction.c | 34 ++- mm/folio-compat.c | 22 -- mm/ksm.c | 2 +- mm/migrate.c | 238 ++++++++++++-------- mm/migrate_device.c | 3 +- mm/secretmem.c | 13 +- mm/shmem.c | 2 +- mm/swap_state.c | 2 +- mm/util.c | 4 +- mm/z3fold.c | 82 +------ mm/zsmalloc.c | 102 ++------- 48 files changed, 367 insertions(+), 735 deletions(-) -- 2.35.1