From patchwork Wed Nov 24 20:20:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matthew Wilcox (Oracle)" X-Patchwork-Id: 12637717 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 AE615C433F5 for ; Wed, 24 Nov 2021 20:21:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2EFDB6B0075; Wed, 24 Nov 2021 15:20:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 277BC6B0078; Wed, 24 Nov 2021 15:20:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 119776B007B; Wed, 24 Nov 2021 15:20:58 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0065.hostedemail.com [216.40.44.65]) by kanga.kvack.org (Postfix) with ESMTP id F285A6B0075 for ; Wed, 24 Nov 2021 15:20:57 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id B0F24812A487 for ; Wed, 24 Nov 2021 20:20:47 +0000 (UTC) X-FDA: 78844942134.15.19FD86B Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf03.hostedemail.com (Postfix) with ESMTP id CCE933000443 for ; Wed, 24 Nov 2021 20:20:43 +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=Dxu8rmSj5L6/mmz45KruXo7nmpwWJ/sOE5r4T8rfCAo=; b=vKiwxHVhDBbH9WgvIEHzDg4gBn tIZBoymYM8gOJJlXuvkgfthzXQe5erlk8fd70Ib9ZUqOT/d7fTgBliixRA1VyiE4ZFF9Z9eWgxZyj mWInKt2kfiVRMDWQf7QJAPA/lsm3YTK8dM7BaFfigw0oG5iGUzWGr2TXQ4aKqHDwlWaXnO5Mj/gZJ okE8RFgfmUC5r1jpsgIupV286bqsXoBI+D9gGJg/5npk9VAeWc6AfvDgBJY4sLxCIBmLTh8Z900GC u3nEaLBDxvV58lnWE0xQ1+ImPVCbZEHI+HVaV0XT57bE49FDUqjgGl6CFIZYrZc5UpM+I9dGhYx5Y 3YhbpOjQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mpyl2-003F4b-J2; Wed, 24 Nov 2021 20:20:44 +0000 Date: Wed, 24 Nov 2021 20:20:44 +0000 From: Matthew Wilcox To: Linus Torvalds Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Folio fixes for 5.16 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: CCE933000443 X-Stat-Signature: 4z91uwkq74xwqd9ebjsjneshyzihx45t Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=vKiwxHVh; 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; dmarc=none X-HE-Tag: 1637785243-117939 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: Hi Linus, In the course of preparing the folio changes for iomap for next merge window, we discovered some problems that would be nice to address now: - Renaming multi-page folios to large folios. mapping_multi_page_folio_support() is just a little too long, so we settled on mapping_large_folio_support(). That meant renaming, eg folio_test_multi() to folio_test_large(). - I hadn't included folio wrappers for zero_user_segments(), etc. Also, multi-page^W^W large folio support is now independent of CONFIG_TRANSPARENT_HUGEPAGE, so machines with HIGHMEM always need to fall back to the out-of-line zero_user_segments(). - The build bots finally got round to telling me that I missed a couple of architectures when adding flush_dcache_folio(). Christoph suggested that we just add linux/cacheflush.h and not rely on asm-generic/cacheflush.h. These changes have been in linux-next for the last week with no new squawks. The following changes since commit 8ab774587903771821b59471cc723bba6d893942: Merge tag 'trace-v5.16-5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace (2021-11-14 19:07:19 -0800) are available in the Git repository at: git://git.infradead.org/users/willy/pagecache.git tags/folio-5.16b for you to fetch changes up to c035713998700e8843c7d087f55bce3c54c0e3ec: mm: Add functions to zero portions of a folio (2021-11-18 15:05:56 -0500) ---------------------------------------------------------------- Fixes for 5.16 folios: - Fix compilation warnings on csky and sparc - Rename multipage folios to large folios - Rename AS_THP_SUPPORT and FS_THP_SUPPORT - Add functions to zero portions of a folio ---------------------------------------------------------------- Matthew Wilcox (Oracle) (6): Add linux/cacheflush.h mm: Rename folio_test_multi to folio_test_large mm: Remove folio_test_single fs: Remove FS_THP_SUPPORT fs: Rename AS_THP_SUPPORT and mapping_thp_support mm: Add functions to zero portions of a folio arch/arc/include/asm/cacheflush.h | 1 - arch/arm/include/asm/cacheflush.h | 1 - arch/m68k/include/asm/cacheflush_mm.h | 1 - arch/mips/include/asm/cacheflush.h | 2 -- arch/nds32/include/asm/cacheflush.h | 1 - arch/nios2/include/asm/cacheflush.h | 1 - arch/parisc/include/asm/cacheflush.h | 1 - arch/sh/include/asm/cacheflush.h | 1 - arch/xtensa/include/asm/cacheflush.h | 3 --- fs/inode.c | 2 -- include/asm-generic/cacheflush.h | 6 ----- include/linux/cacheflush.h | 18 ++++++++++++++ include/linux/fs.h | 1 - include/linux/highmem.h | 47 +++++++++++++++++++++++++++++++---- include/linux/page-flags.h | 14 +++++------ include/linux/pagemap.h | 26 +++++++++++++++---- mm/highmem.c | 2 -- mm/memcontrol.c | 2 +- mm/shmem.c | 3 ++- mm/util.c | 2 +- 20 files changed, 92 insertions(+), 43 deletions(-) create mode 100644 include/linux/cacheflush.h