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=-6.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no 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 0065EC433E2 for ; Tue, 8 Sep 2020 19:55:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 899572137B for ; Tue, 8 Sep 2020 19:55:54 +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="swD5u+hT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 899572137B 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 390F86B005A; Tue, 8 Sep 2020 15:55:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2A3776B005D; Tue, 8 Sep 2020 15:55:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0CE246B0062; Tue, 8 Sep 2020 15:55:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0160.hostedemail.com [216.40.44.160]) by kanga.kvack.org (Postfix) with ESMTP id EBEB16B005A for ; Tue, 8 Sep 2020 15:55:51 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id A3CFE180AD802 for ; Tue, 8 Sep 2020 19:55:51 +0000 (UTC) X-FDA: 77240949702.21.corn94_300d44d270d7 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin21.hostedemail.com (Postfix) with ESMTP id 72195180442C0 for ; Tue, 8 Sep 2020 19:55:51 +0000 (UTC) X-HE-Tag: corn94_300d44d270d7 X-Filterd-Recvd-Size: 2992 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf47.hostedemail.com (Postfix) with ESMTP for ; Tue, 8 Sep 2020 19:55:50 +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=tbtp4TIXR0MyEZr4HxFB198TbMR5dMFiKzx9ZKjpNc8=; b=swD5u+hTiOK6fdvMsYcOOQ4ZZB UvebzxdD275SCeQ11NLy0Y0GpNkZUmHVvwnkxZ2vRAXWI343pC4B5ONgxGBfnIwrLAMK3f4yINW7z kgmOuvzlgBI5yfLIbu5nPVCSopQGNAhEhyQBphMyJ1i4dZrGfTckzPlLuArlcjaLtJBDAggqcux8D gp9TEY3fqHlxIqYgtBwkHqzsjumxh34uLknHHFEadzztHJqwqmIZ1CLlGEwDAg4I3B4FZm+shmTtb F9wu0tdXNk1bCKK54XI15jmkXqBRjtrRf0LxtO+ukBtvR4FcqrvQsarkAoFVz70vquUdtyCS6g7PM 1hJbAoDw==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFjiP-0006kl-8l; Tue, 08 Sep 2020 19:55:41 +0000 From: "Matthew Wilcox (Oracle)" To: linux-mm@kvack.org, Andrew Morton Cc: "Matthew Wilcox (Oracle)" , "Kirill A . Shutemov" , Huang Ying Subject: [PATCH 00/11] Remove assumptions of THP size Date: Tue, 8 Sep 2020 20:55:27 +0100 Message-Id: <20200908195539.25896-1-willy@infradead.org> X-Mailer: git-send-email 2.21.3 MIME-Version: 1.0 X-Rspamd-Queue-Id: 72195180442C0 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 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: There are a number of places in the VM which assume that a THP is a PMD in size. That's true today, and remains true after this patch series, but this is a prerequisite for switching to arbitrary-sized THPs. thp_nr_pages() still returns either HPAGE_PMD_NR or 1, but will be changed later. Kirill A. Shutemov (2): mm/huge_memory: Fix total_mapcount assumption of page size mm/huge_memory: Fix split assumption of page size Matthew Wilcox (Oracle) (9): mm/filemap: Fix page cache removal for arbitrary sized THPs mm/memory: Remove page fault assumption of compound page size mm/page_owner: Change split_page_owner to take a count mm/huge_memory: Fix page_trans_huge_mapcount assumption of THP size mm/huge_memory: Fix can_split_huge_page assumption of THP size mm/rmap: Fix assumptions of THP size mm/truncate: Fix truncation for pages of arbitrary size mm/page-writeback: Support tail pages in wait_for_stable_page mm/vmscan: Allow arbitrary sized pages to be paged out include/linux/page_owner.h | 6 +++--- mm/filemap.c | 2 +- mm/huge_memory.c | 32 +++++++++++++++++--------------- mm/memory.c | 7 ++++--- mm/page-writeback.c | 1 + mm/page_owner.c | 4 ++-- mm/rmap.c | 10 +++++----- mm/truncate.c | 6 +++--- mm/vmscan.c | 3 +-- 9 files changed, 37 insertions(+), 34 deletions(-) --=20 2.28.0