From mboxrd@z Thu Jan 1 00:00:00 1970 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 D2CC4C433F5 for ; Fri, 8 Apr 2022 15:44:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E90C26B0072; Fri, 8 Apr 2022 11:44:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E18946B0073; Fri, 8 Apr 2022 11:44:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB80B6B0074; Fri, 8 Apr 2022 11:44:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id B89C26B0072 for ; Fri, 8 Apr 2022 11:44:53 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 8E6008030E for ; Fri, 8 Apr 2022 15:44:53 +0000 (UTC) X-FDA: 79334134866.12.2E20503 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf26.hostedemail.com (Postfix) with ESMTP id 4FF70140005 for ; Fri, 8 Apr 2022 15:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=XVrmVkxbZFeUzPkrlxP1pQ2QZfiyERI64e73B6PlUOc=; b=sWAqtlNPk3PGf03p3TMbmgC1xH bsKSGgaw1sxTQA9mevK0NXrgXDAaZK4olcHFJxwof3Ny+xuM2dQMb8FtC+fMyrUy3fZjQmLmMKiwv QhvuhAi/MH6IP2E6db8RaR/kIGimmb255F3dQKEgNeAEQe7GjlJQuXAbM7bZeWQBtomWO4xvpWgyo G79hDb1DDJVR5rzEixPIMpjr22wIcvI+KtQe/iqblOVG93ejdjcS07WrDmrk0DTTF1/iCU1xRPlUD woKvDCsrxpEOmmur9R68BSXOzWtkhx9zcYvErvepoy3flXA3aB4b44VQ4KEAZ9GultFZ9mEuj1QfE 2ZvVc8HQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncqn2-009war-Vp; Fri, 08 Apr 2022 15:44:49 +0000 Date: Fri, 8 Apr 2022 16:44:48 +0100 From: Matthew Wilcox To: Linus Torvalds Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Folio fixes for 5.18-rc1 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Stat-Signature: 3963cuq9eoi9if1p8xdfew4b5czfthzp Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=sWAqtlNP; spf=none (imf26.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 4FF70140005 X-HE-Tag: 1649432692-791832 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: Fewer bug reports than I was expecting from enabling large folios. One that doesn't show up on x86 but does on arm64, one that shows up with hugetlbfs memory failure testing and one that shows up with page migration, which it turns out I wasn't testing because my last NUMA machine died. Need to set up a qemu fake NUMA machine so I don't skip testing that in future. The following changes since commit 3e732ebf7316ac83e8562db7e64cc68aec390a18: Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost (2022-04-05 10:40:52 -0700) are available in the Git repository at: git://git.infradead.org/users/willy/pagecache.git tags/folio-5.18e for you to fetch changes up to 98ea02597b9967c0817d29fee2f96d21b9e59ca5: mm/rmap: Fix handling of hugetlbfs pages in page_vma_mapped_walk (2022-04-07 10:11:20 -0400) ---------------------------------------------------------------- Three folio-related fixes for 5.18: - Remove the migration code's assumptions about large pages being PMD sized - Don't call pmd_page() on a non-leaf PMD - Fix handling of hugetlbfs pages in page_vma_mapped_walk ---------------------------------------------------------------- Matthew Wilcox (Oracle) (5): mm/huge_memory: Avoid calling pmd_page() on a non-leaf PMD mm/migrate: Use a folio in alloc_migration_target() mm/migrate: Use a folio in migrate_misplaced_transhuge_page() mm: Add vma_alloc_folio() mm/mempolicy: Use vma_alloc_folio() in new_page() zhenwei pi (1): mm/rmap: Fix handling of hugetlbfs pages in page_vma_mapped_walk include/linux/gfp.h | 8 ++++-- mm/huge_memory.c | 11 ++++---- mm/mempolicy.c | 38 ++++++++++++++++--------- mm/migrate.c | 80 +++++++++++++++++----------------------------------- mm/page_vma_mapped.c | 6 ++-- 5 files changed, 64 insertions(+), 79 deletions(-)