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 X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6340BC55179 for ; Thu, 29 Oct 2020 19:34:12 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9501C206DD for ; Thu, 29 Oct 2020 19:34:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="ZjY+Roa5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9501C206DD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E46486B005C; Thu, 29 Oct 2020 15:34:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DF7CB6B0062; Thu, 29 Oct 2020 15:34:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CE4D76B0068; Thu, 29 Oct 2020 15:34:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0074.hostedemail.com [216.40.44.74]) by kanga.kvack.org (Postfix) with ESMTP id 9DEC76B005C for ; Thu, 29 Oct 2020 15:34:10 -0400 (EDT) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 4CA8E1EE6 for ; Thu, 29 Oct 2020 19:34:10 +0000 (UTC) X-FDA: 77425963860.06.wall74_08122f127290 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin06.hostedemail.com (Postfix) with ESMTP id 2D35B1004FBC0 for ; Thu, 29 Oct 2020 19:34:10 +0000 (UTC) X-HE-Tag: wall74_08122f127290 X-Filterd-Recvd-Size: 4484 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf23.hostedemail.com (Postfix) with ESMTP for ; Thu, 29 Oct 2020 19:34:09 +0000 (UTC) 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=ZgHdCfzpzQ7IKzaSzNJ4oqpe7Y/vCw/REGTk/NIYUac=; b=ZjY+Roa5E8NERG2vcHsA/VL0xq yxwnoKgifxkRONE0Nc43Eiet6to737Kmfg/txM3J0H9yp+txHibqtoNIt7/7DbfvF3YR7lgT+2B1z q87GKVfSDkvX3zU3HaZnq1qxki1lEncP+U5laHOstMeMiiZGa1ORkdpmHUNOTbkLgjvOOzjjdHLNA /CqbNvXGayzv2jZxI0bJzQwl+GJLg02pk7Xn5niOfeo3mSG5rjymWTM6iuiy3eNj9Tf7l5MGpPe5r W/FUZv5iCCAoXsAe6IEafwU+s5eR3SwEQaXZq02cXCfJTL70q7F+ioEqhI2Xk0AgbdVCSWeFSfUq0 msemzhEA==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYDgV-0007b1-IU; Thu, 29 Oct 2020 19:34:07 +0000 From: "Matthew Wilcox (Oracle)" To: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" Subject: [PATCH 00/19] Transparent Hugepages for non-tmpfs filesystems Date: Thu, 29 Oct 2020 19:33:46 +0000 Message-Id: <20201029193405.29125-1-willy@infradead.org> X-Mailer: git-send-email 2.21.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: After months of merging prep patches, here's the end result. It holds up to xfstests on both shmem and xfs. It's based on linux-next as of a couple of days ago, plus several of the patches I've sent in the last week: https://lore.kernel.org/linux-mm/20201026041408.25230-1-willy@infradead.o= rg/ https://lore.kernel.org/linux-mm/20201026151849.24232-1-willy@infradead.o= rg/ https://lore.kernel.org/linux-mm/20201026183136.10404-1-willy@infradead.o= rg/ You can get a complete git tree here: http://git.infradead.org/users/willy/pagecache.git/shortlog/refs/heads/ne= xt This tree only includes support for XFS. It would probably be straightforward to add support to ZoneFS (which also uses iomap), but I haven't looked into it. Dave Howells has AFS support working based on these patches: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log= /?h=3Dfscache-thp Matthew Wilcox (Oracle) (18): XArray: Expose xas_destroy mm: Use multi-index entries in the page cache mm: Support arbitrary THP sizes mm: Change NR_FILE_THPS to account in base pages mm/filemap: Rename generic_file_buffered_read subfunctions mm/filemap: Change calling convention for gfbr_ functions mm/filemap: Use head pages in generic_file_buffered_read mm/filemap: Add __page_cache_alloc_order mm/filemap: Allow THPs to be added to the page cache mm/vmscan: Optimise shrink_page_list for smaller THPs mm/filemap: Allow PageReadahead to be set on head pages mm: Pass a sleep state to put_and_wait_on_page_locked mm/filemap: Support readpage splitting a page mm/filemap: Inline __wait_on_page_locked_async into caller mm/readahead: Add THP readahead mm/readahead: Switch to page_cache_ra_order mm/filemap: Support VM_HUGEPAGE for file mappings selftests/vm/transhuge-stress: Support file-backed THPs William Kucharski (1): mm/readahead: Align THP mappings for non-DAX drivers/base/node.c | 3 +- fs/proc/meminfo.c | 2 +- include/linux/huge_mm.h | 8 +- include/linux/mm.h | 42 +- include/linux/mmzone.h | 2 +- include/linux/page-flags.h | 4 +- include/linux/pagemap.h | 37 +- include/linux/xarray.h | 1 + lib/xarray.c | 7 +- mm/filemap.c | 399 ++++++++++-------- mm/huge_memory.c | 31 +- mm/internal.h | 4 +- mm/khugepaged.c | 15 +- mm/migrate.c | 12 +- mm/readahead.c | 102 ++++- mm/shmem.c | 11 +- mm/vmscan.c | 3 +- tools/testing/selftests/vm/transhuge-stress.c | 36 +- 18 files changed, 430 insertions(+), 289 deletions(-) --=20 2.28.0