From patchwork Mon Apr 29 19:00:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13647530 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 814BEC4345F for ; Mon, 29 Apr 2024 19:01:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DB2B96B0085; Mon, 29 Apr 2024 15:01:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D62B86B0087; Mon, 29 Apr 2024 15:01:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C2A2E6B0088; Mon, 29 Apr 2024 15:01:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A24196B0085 for ; Mon, 29 Apr 2024 15:01:21 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 27C12140300 for ; Mon, 29 Apr 2024 19:01:21 +0000 (UTC) X-FDA: 82063487562.18.0748128 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf01.hostedemail.com (Postfix) with ESMTP id 9511D40009 for ; Mon, 29 Apr 2024 19:01:18 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=SRmXdEIp; spf=none (imf01.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714417279; 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=fUX65k+kB0G1LklrMperRGQP0Iy1kp8aFtHAh+Tb8CY=; b=lVZYfGj2Em3JGABn9yfr7qr4NA8OFHbAGS7J549cMzdnTj3L2IMq4nWNm+KTpCjb2FYuVf cggRBh6ol1qcKMlEqOCQT8MaKJbEiXSGGXEXO+eC5CtlGSMyWY5Z2UhD2NmjgH0lf+8jic ItDzanK5AO5m8yWJmeUDQ3tAKwQbXVA= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=SRmXdEIp; spf=none (imf01.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714417279; a=rsa-sha256; cv=none; b=tySAB77rphsmuBfq91Bsxk1PORfuhQcFSPfFIw+9Vy40KCHDXYqTI4gT8srlwJsTo/bO2d bKRrinpJT2cancXdSZlMjUrPqyMoQCkmulnCZl0s4FPVPjwQzWF/eEXlfVkq/+E4yll/6W eyhLOlITUqobJW4iSqiI7InhuQ1GuEI= 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=fUX65k+kB0G1LklrMperRGQP0Iy1kp8aFtHAh+Tb8CY=; b=SRmXdEIpyUtjBvk8RSbYNZ1P1v OzYvIeuPkJX147adFx+vO2+CW/rWaPogsSnX9KGWqVV2lhvlS2ex9S1PZOMFOV2psXxeL1b8BSIB0 Q9TBKOpFtlEHUDtys1YVyVT38gQCcgKDjn8HvgLP/z9brm5HphbI6Jx0rAqQjileehTe5FCWZJtZ3 HqSY5UlPvuDYSDHCTbpUbDfll4l7//hEw1njkXZWOhEFOkuz+f8qnvmY6pwcVenYzdv0U7QxYs1da XQxDF8Y5LfrXk3KmtcoujYeKocEg7VgibME2C1bLloGLADcliI4Io5aBhpkRAYiylD+BUpQXtnmTh wY0sy9xg==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1WFY-0000000D7pA-2zpR; Mon, 29 Apr 2024 19:01:16 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton , linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" Subject: [PATCH] thp: Remove HPAGE_PMD_ORDER minimum assertion Date: Mon, 29 Apr 2024 20:00:55 +0100 Message-ID: <20240429190114.3126789-1-willy@infradead.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 9511D40009 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: acb5sygwjcpxx3m6nkwky8if79zqnbpf X-HE-Tag: 1714417278-15792 X-HE-Meta: U2FsdGVkX1+QSKsoWT9z2ZLUBkFadJmyr1q6Tro26Ctsj4veaGIxAPdrRoludXHyvpt+fOtxwvezDHh8lSHLoTtkbm3eYb51ngeZ3Budo6MrUvBQl71UqT59Jk7j9EREYvQrlY8qCd/XJ751UNU2pyLg53agof2GP6NCOX+AYCA4Z52dzyFKWe3fSvP7Z+9Po4kSwAA7p+s0nEtqmPAE1ooqF3SP8M4jtTB48lWMk7xfWNsgs01aFBu/yH6otjB0xze0r7ViYfgTx0cQKxignOB8XWqSAkHkjj0BABkob6xrGLilBbTThi3GZXLgI9sIjvHZkpBPfaDbGpWKg+lgDlFdVLxqPUBn5S+HkdRzJjrt879tl7mnxCM6LvDJS4hlnzP66ybyVLC6qcYdCFzH6IQvZkXNs0QLNkb85DnV1LXxzzMCZCR3bJV80T0qSjoFsCBbKxXp2UigvznVAU+4SwxO8sE9MNUwxxuFo6H1Fn4GmJ2q5PO5/TD5VUdV/b5UZKBOtTI+afzqT/qfyUgrmpDHNFdK5FS6aMhazvwulNd04khyiGVp12Zr/x9U7DMNy/Netorq/5Tcg7d+ptCPkgTkXKVdQ9vPbO/jcPnRp9WVgVmbl6G0/3/La5Tfn4ze2exf7e8v2sGftkK43Nw4f2V05FaHVrgrAlUiZONguj+i1ZWsBPr1UmgnxBpcPbKnspwgAITkZAGYm0k08UQF4En74hJLRMFYYcxiRJ9UEHOFOByquOyJl5pAqAF0dYGv296vn7Ibva2hdlvv2x4E/wpKf8R11oJaUkaoCuwzDF2fyHgFN1+o33Jk9IQxX0/0Jyl6TsTxxBMvdKw/vsq8Ou89euEEfKtWpxoWC7U4IJCqdofkCpp3jVWqqJ7u+MeAnlwO147VfLPWMUh4vNsOAkOiIIbXiV0Bd3DO+6QM3mJx6EqNOoZXfCJiobhFt2YqrefZ4+PE2LxwOg8lArY FDF4h9ry v4EYJ1OKBrAI0yotbtoW0dYyILnd7aD22ZvwIdf8JsZhFP5Frox6QBzSoOFDxXcemjMtSK3rf/HwE8m25itEUUPuVBuEJAk6viT8vnmmLJuP0zVneOKLRDW2D6wRUShJaTXmrJB7Tt8P0oKN2zobJbSItE23BRphdNgxCg9CKSOFuJRE0PpT44Dz+12Zoz/wXXTxAkdZkTYgvjQCIhiziNGToZ5GYq0wyVKbD 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: We now handle order-1 folios correctly, so we don't need this assertion any more. Signed-off-by: Matthew Wilcox (Oracle) --- mm/huge_memory.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 19000fc2c43c..8b75809aca24 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -740,11 +740,6 @@ static int __init hugepage_init(void) * hugepages can't be allocated by the buddy allocator */ MAYBE_BUILD_BUG_ON(HPAGE_PMD_ORDER > MAX_PAGE_ORDER); - /* - * we use page->mapping and page->index in second tail page - * as list_head: assuming THP order >= 2 - */ - MAYBE_BUILD_BUG_ON(HPAGE_PMD_ORDER < 2); err = hugepage_init_sysfs(&hugepage_kobj); if (err)