From patchwork Mon Dec 11 16:22:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13487530 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 700A5C10DC3 for ; Mon, 11 Dec 2023 16:22:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E525C6B0152; Mon, 11 Dec 2023 11:22:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E03C26B0153; Mon, 11 Dec 2023 11:22:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CA3E16B0154; Mon, 11 Dec 2023 11:22:23 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id A9C566B0152 for ; Mon, 11 Dec 2023 11:22:23 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 63B4D1C101D for ; Mon, 11 Dec 2023 16:22:23 +0000 (UTC) X-FDA: 81555054966.26.B4CE8ED Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf03.hostedemail.com (Postfix) with ESMTP id D459A2000E for ; Mon, 11 Dec 2023 16:22:21 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=TCO6iIwD; dmarc=none; spf=none (imf03.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=1702311741; a=rsa-sha256; cv=none; b=63B4bRtck1jTGqwoDLQ/o8CPat3HoBVWp5ZyiJMlH08E+NU6EVmpogXQdVwzezc4J3T10d 5XuXutC//qIY0HX1Ns0Yl4xIJm402usvCmFo9ptJBYqU/APei2AlYw1R1y/2cMIcpfUrxy JXDEfAHbIkEq/stnaE4+jHr9IVumKp0= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=TCO6iIwD; dmarc=none; spf=none (imf03.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=1702311741; 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=+U+UwZOH9uMip9oypJkZk2bfisQKhowaDUv3V/PrD5c=; b=Op5KQjjnYPhTSALAdis/D0mAcF0mh1AZcP9F+QbXVlKb4XnQ/acvACPtuVTKV8lAjDxd9E I2NamQ+tHAXvx6Yfim4k9LAjXeYzuSvwr9kaFgPuIHwbnmCsAYtN24GatO22HHRoPfLx/h yeSLYeARrDRk+q/JvZVPR1HTvXB4Gq8= 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=+U+UwZOH9uMip9oypJkZk2bfisQKhowaDUv3V/PrD5c=; b=TCO6iIwDWWgIcfWrVGRh+9K6dW WdWlF6XixaNCjDPO6vzzPQNUvM5yg/+5jiVlt0IWGnumYrlNjqmg5Ws0aPQTJTthuBRNE9VkzSYlR 2a3aWmWKGU0baacGup5M4PCLFw2ZXAo6u35/Eg8NDjtuxxtQsLZp2wQxtdd++hWePGPn72MuDwFaf i0qh8FAFJaPJNfFM65cf8siM1QOpRK1JocCsRNH54OKk6gT80GpXZ3sdUUefSzuOThlclts9pe7wX wfmZ8jJIHYsKkqYjg1JAf2QLKnVmp8CneOdords4FUkMCJgjN84YQePgrIMTZHm7S0y0AoXFOvN20 6Dyag97w==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rCj2t-0090Ic-TW; Mon, 11 Dec 2023 16:22:15 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org Subject: [PATCH 0/9] Finish two folio conversions Date: Mon, 11 Dec 2023 16:22:05 +0000 Message-Id: <20231211162214.2146080-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: D459A2000E X-Stat-Signature: 6kkzea1cgkeujz8esf39wxmcro1ghfie X-HE-Tag: 1702311741-283726 X-HE-Meta: U2FsdGVkX1/8ImbLlntogYKXp7jNu4VWPll8CT53nw6pK4jdr8TqgB5G2pMvU701S4rYdnsbvOzf7rWfref859Usg610egIHhe7wcmghIain8kie9NkjuLrMd6fB+iRF1PyLjS/6a4ruymb9e/dHIwhxPIu/WZKP9aij4+LgsQO+QhXTqpjgfL6RPvcoosb81cM6mgKyihSdTR+4usDLKG1P/bX0AXPRYeRGlmtGyrsir5fSYrohAU55KyScSIiRiroxNjgdoCcUJTTocZe1N9jbyBbcreSaSEMzS9pzFgY0hrcgXp+Kqr7v3VGNbhu7mgbJrTPdMoaEAWPFAcVTRV1uC4/TFjayx26B5YMdVfGvSNgtpSf1VB7Ly+6vQhJudqGEfLV//GcMKkIwQkhK60G9g7CHLpfbJLyYIs3rP/WEjGXAR9nOsbSIbx3NR2LfJp8LiSSwLKGKDqKDjxh0+v6jzq54CKLThNmZfpEdfBt9UzshtsU3fIyDr2noox0Pfkj+sL/m13Nn+pTqR86E3X38/G71mA4fdZKRYg/HmOcSb9alz8owQ60w2hjPltmMW2UESIik4z8My0Pmi4lrJOT/dGxqkVVMk3xxipEruF/of+wSVV+F09H8TF0CGrzUaDd4kcE8nPLljHjEj4VwP3HZLzXTb9IE+8VJGSZv8jTNnyX0qogPHpEuqmHPx2qW2jSziPUW81NfVSssDVY33NrWxjXA3yCYmJDlFuTjvETi4sNrbuFMHrzEKKMl8hAUDFXU9xG8ODDxZ6ibB1bGUy45hG6346/UkKGacAQWrET1wDjGaDmutmxs3Wl4+pW5d9Km4l00M4B8u1Klhm97ijY3fM9OU6SkOLOuhEhfv2fOYvKrH4fbE7Dip0MVPswDUCTG3Bla75GjenkpsS64wSD5pUZLY8W1Du/beW7I7cCpMsGSCf1UXgVvXdsQqEssof0b1/ZY7O81xB1rqBD Z7Y77BXn oo21Gmw/2/VU22OFs9NlE96qW+l+ik3aiquVfVqqqtwM8O6vWf2F+D4PiVJS5rM6WXwbMqbPlUuZL4F1Ul59dcwG+kWNoNyh3VwavpYU6eVQ3z766gyRRj4VvTw== 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: Most callers of page_add_new_anon_rmap() and lru_cache_add_inactive_or_unevictable() have been converted to their folio equivalents, but there are still a few stragglers. There's a bit of preparatory work in ksm and unuse_pte(), but after that it's pretty mechanical. Patch series against next-20231207. Matthew Wilcox (Oracle) (9): mm: Convert ksm_might_need_to_copy() to work on folios mm: Simplify the assertions in unuse_pte() mm: Convert unuse_pte() to use a folio throughout mm: Remove some calls to page_add_new_anon_rmap() mm: Remove stale example from comment mm: Remove references to page_add_new_anon_rmap in comments mm: Convert migrate_vma_insert_page() to use a folio mm: Convert collapse_huge_page() to use a folio mm: Remove page_add_new_anon_rmap and lru_cache_add_inactive_or_unevictable include/linux/ksm.h | 6 ++--- include/linux/rmap.h | 2 -- include/linux/swap.h | 3 --- kernel/events/uprobes.c | 2 +- mm/folio-compat.c | 16 ------------- mm/khugepaged.c | 15 ++++++------ mm/ksm.c | 21 ++++++++-------- mm/memory.c | 10 ++++---- mm/memremap.c | 18 ++++---------- mm/migrate_device.c | 23 +++++++++--------- mm/rmap.c | 4 ++-- mm/swapfile.c | 53 ++++++++++++++++++++++------------------- mm/userfaultfd.c | 2 +- 13 files changed, 76 insertions(+), 99 deletions(-)