From patchwork Wed Dec 13 21:58:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13491933 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 8D562C4332F for ; Wed, 13 Dec 2023 21:59:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2B82F8D0067; Wed, 13 Dec 2023 16:59:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 216098D0062; Wed, 13 Dec 2023 16:59:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0B8D48D0067; Wed, 13 Dec 2023 16:59:15 -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 E4F068D0062 for ; Wed, 13 Dec 2023 16:59:14 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id AF1DCC036E for ; Wed, 13 Dec 2023 21:59:14 +0000 (UTC) X-FDA: 81563161428.27.2AF504A Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf06.hostedemail.com (Postfix) with ESMTP id 0DA77180016 for ; Wed, 13 Dec 2023 21:59:12 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=hc5+aTDX; dmarc=none; spf=none (imf06.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=1702504753; 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=cdUAwNe8OZLd+iU7HzBF/nh7XzGiDgfR4sCcYlyj85Y=; b=wu83Mur8YtnLEGZltE5blIX3meRb6vGlG6urybrgAZUdZ2usB32lknEkiO1bfIRRuVO8Bv RZK5KQ4dzqg+ctQi3KD8+p2cGjGa/dr/b5Y9/SwFng0AZb6maasc6aUJAqcAIN8QLAr7tb 4v71/RP3CfOFEw72BcGQBKBT1f5zZco= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=hc5+aTDX; dmarc=none; spf=none (imf06.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=1702504753; a=rsa-sha256; cv=none; b=dr9IPdX/RoeV1kpmwyLZWQU8MvuwAeIckwFojio2ZOt/G5D3QzTUKWI4mxYQEPvJzjpr9K kuynviN6TPwnrOT86aHccxrH2wFFcXD5WmEL/usITKQ+gxjlmdpePLbMYiowCQOa0oNLdp ORddXeNNUkIHyL03w0ZXjalbF4PaZ0A= 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=cdUAwNe8OZLd+iU7HzBF/nh7XzGiDgfR4sCcYlyj85Y=; b=hc5+aTDXeddlJmVfHQ8wvPH2lW 9sFO+OGSHmbUfPsISGqb9M4ic1y5hBmO+3WhgivjWkmx4sfqh80cMg+CKYnJS0t09ZDcRsGESNGvS eixzSWxwePKI0UU63YaRKp6gZSdCvyEB80SR1sa0JJu1/jbq7aYWospdaJSugsJA0SC0xwSvI70gW H4c9BJRizU90Jf3ackdD7CWjzzU+kXdoAfPs0rKyolJTBZmikaIuBF4x8me3DjmxHTrg3MkZ7iZ5a CScKOHnLsrAMROeFv7Z3r64A5WmyVxRYYFDB2dpKKsEc1q0c2P2BXBE122q044FzIesLO/Mnn6tx2 AomWUlJA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rDXFc-002ohx-Ox; Wed, 13 Dec 2023 21:58:45 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org Subject: [PATCH 00/13] More swap folio conversions Date: Wed, 13 Dec 2023 21:58:29 +0000 Message-Id: <20231213215842.671461-1-willy@infradead.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 0DA77180016 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: jbnb988a1qhdsnhgzqborcnskumi4966 X-HE-Tag: 1702504752-450965 X-HE-Meta: U2FsdGVkX1+1PjLrkQzlEPqhrTeREFj4+6BD3Zm4kIg/ZlhnzKJxjS2kKnd1g2XZRy0fmv8l0HJD7cisIsxiT96TXhMLdCA0OpjCwYCR7brFBGW4dfdvoeKW7wcpXFevaAKRyde2jMyHhDUvgb2U8O0VT3vTde76ZwTOv26fD/CShwW5IYE36i6vXXIakwt6j0hs1ZUz4wqLo/b8WP4F40Zj00I6nO4wTRH6JRrGJ5R5ypIJOi9uq1bTaPvhmTzmyjXvWqc0b9bUHVed0PhZ4WRTIEGdKfvHHG5QOzp/BQV3bDDdWgoKuKQ3vhlZiip243G5X5q/SzqonXrvIDrbj61XJtQwQlJUlfwTaG4+uYU6CTJU2D1zRk5wJ3oRVxFwvmHsLO/Zi53MnHOANnLGnEzcoh1wMZnN2IP8UB/6/ePyfqlEhpmQ0vaKcqeiKGgks5+FCAudy+W+Yi9giATsmMmU1Epu4zNBIXrD2Ti1O/y3cyYfhShRCmqlpVLV5kyU2BjiIOzoXl/lOAcZyPlhh82UsS3QuFApBPHXb5CyFx1XKByqVYfLHiv3SlVPE0guhRblSCNZAVdIopUD9Z7OeWBef7e+ZRlTMItP/0HhL1R8QXntN6dEY8XLm9Hq9sdraA55FnTPYufRVUtS69SXz08QceIPfwhAkaiQkPCFz9yRk1kjQTvPVr6s+ymmNeSJPy+/dN2CW9DWb1e2bvyzoeCtTwqpu/496tQzjgHe3IgaG9+uNJPkd7EqwQdBbVLuytx6HW9mC8j6pUM8BjbVDsFfRb9BQ+yP9SDKICqVoGujy665z3OB77xFp/UqUx21NsKboeJD7ZHNG8B/8BBoUMKI7jpLz3cSGXInv9a16aO8H/MKCLGH+iw8Yw+5YnXNISG4Yl6k+G/atxBbEKvcZYaW3lXire30wgcH5ELTElZNdvOt7biQoKrSSIlR0Z2tt9uV8IbKw5+BF9OZpfM JbhVGfXa H7ZToPkDnsKri1YpLkoJpZriydY/slrjW2CXhwAgPHjGTUSEJNOdFy/S1veCC62RV9d64rCbigU80qZicCIr0EDzTK/S3vWtbLKQ4jstdwl82XdGyTpgpoqJLAw== 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: These all seem like fairly straightforward conversions to me. A lot of compound_head() calls get removed. And page_swap_info(), which is nice. Passes my fairly limited testing. Matthew Wilcox (Oracle) (13): mm: Return the folio from __read_swap_cache_async() mm: Pass a folio to __swap_writepage() mm: Pass a folio to swap_writepage_fs() mm: Pass a folio to swap_writepage_bdev_sync() mm: Pass a folio to swap_writepage_bdev_async() mm: Pass a folio to swap_readpage_fs() mm: Pass a folio to swap_readpage_bdev_sync() mm: Pass a folio to swap_readpage_bdev_async() mm: Convert swap_page_sector() to swap_folio_sector() mm: Convert swap_readpage() to swap_read_folio() mm: Remove page_swap_info() mm: Return a folio from read_swap_cache_async() mm: Convert swap_cluster_readahead and swap_vma_readahead to return a folio include/linux/swap.h | 5 +-- include/linux/zswap.h | 4 +- mm/madvise.c | 22 +++++----- mm/memory.c | 4 +- mm/page_io.c | 79 ++++++++++++++++----------------- mm/shmem.c | 8 ++-- mm/swap.h | 29 ++++++------ mm/swap_state.c | 100 ++++++++++++++++++++---------------------- mm/swapfile.c | 16 +++---- mm/zswap.c | 48 ++++++++++---------- 10 files changed, 148 insertions(+), 167 deletions(-)