Message ID | 20250129224157.2046079-20-fvdl@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 BBC74C02193 for <linux-mm@archiver.kernel.org>; Wed, 29 Jan 2025 22:43:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 849CB280263; Wed, 29 Jan 2025 17:42:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7886B28008C; Wed, 29 Jan 2025 17:42:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3E443280269; Wed, 29 Jan 2025 17:42:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 5DA2D28026A for <linux-mm@kvack.org>; Wed, 29 Jan 2025 17:42:50 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 1AC6312049F for <linux-mm@kvack.org>; Wed, 29 Jan 2025 22:42:50 +0000 (UTC) X-FDA: 83061965700.15.B0AEF79 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) by imf26.hostedemail.com (Postfix) with ESMTP id 431CA14000D for <linux-mm@kvack.org>; Wed, 29 Jan 2025 22:42:48 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=ZIdLPL1i; spf=pass (imf26.hostedemail.com: domain of 35q6aZwQKCPEYoWeZhhZeX.Vhfebgnq-ffdoTVd.hkZ@flex--fvdl.bounces.google.com designates 209.85.216.73 as permitted sender) smtp.mailfrom=35q6aZwQKCPEYoWeZhhZeX.Vhfebgnq-ffdoTVd.hkZ@flex--fvdl.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1738190568; 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-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=X7mcGCY9R/2wAfvNybb5kTke1CSbZ/pNKwqh3Rdbh4M=; b=q3o5o+pC1heI3Yc2ynO9V2AFrOLcTh0LugZsl4FV9lWrjcBYwFn1NtLlZTXeJoA3wjXKpQ m3d/fKLG1CvKSRS3ayvL20f8p6Urjh3aiQ7mGSEx36/ihg7qd8/nzLrv08Ey9Aw0uLo+X+ FhqaCqcYTnk/CXYkfoRdAdvJifXi/aU= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=ZIdLPL1i; spf=pass (imf26.hostedemail.com: domain of 35q6aZwQKCPEYoWeZhhZeX.Vhfebgnq-ffdoTVd.hkZ@flex--fvdl.bounces.google.com designates 209.85.216.73 as permitted sender) smtp.mailfrom=35q6aZwQKCPEYoWeZhhZeX.Vhfebgnq-ffdoTVd.hkZ@flex--fvdl.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1738190568; a=rsa-sha256; cv=none; b=LjJsI6+80tUsQYA9sAJtsnDSwmySErgwTVGHCXe61e6Q8Qdb3ZbkUmw4eQPTrFUuhAcXij pmy0jA+KaehSN0a+mk4f/oOmA/lt+GTti1IbRuI6mhE6imuKV5S5gczdrxCRcdv21ogfI2 gM7kK9/aMbOdRKd0ETX89GnU6rZxXlM= Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-2ef35de8901so218804a91.3 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 14:42:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1738190567; x=1738795367; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=X7mcGCY9R/2wAfvNybb5kTke1CSbZ/pNKwqh3Rdbh4M=; b=ZIdLPL1iSPk43Z7cUJL4/Ow4tlt8S/zaFX2m7+DWE9sNkWdlBtPt0MY0/SMfVeeyqR LUis0KWNSTocHSRJvamwyYwbddaIa9O65YdWlp22COAXx6G2PSCxgy05c+qmGlmkuJE8 akTz1HCo32YLF7RjxKLv2bY21VvHsCTSMV3+1WpMB2Yc8mQjlAs0OSjnzZ7vOHAvbP4q 9si5KvrEu8lfTJdjllonqStISoi/6R2BEyZLuHgEbZjfvRCIPWOvKxDHZM42Bx6NSNbk a2kBMiRRelwtG5GThBzm8D21Vg5bOoYpzfhy0KMgnvah4eomeh0i1Hyo0cAnOD0p+eGC gktQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738190567; x=1738795367; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X7mcGCY9R/2wAfvNybb5kTke1CSbZ/pNKwqh3Rdbh4M=; b=vegqMtZRZUd2U2GaHSleYzD16eQslpMneVcDAOk1DfD34zGmk4ypt1GlAysZRClzEh j1Vc3QOelaNQ+HCX75nM/br8bZAA3rA1lK3g5EliQZuIA0729+0AjZmNkayHuV5j6cCS FmgHT1ZzjX4LIDLbV/oZz8NPEtQUKNRF/omZKQsMmvAEu09doVBxxWq9A5Fnc0vSVq5X CP5xPC6kv61ZphincrKCN7hKHwxNTW1Cp/Pc8ssuPxS8yZjHp4Wvs5J03Fm8L+QO1Bks 9gNXezNIMSfMLEbAyHNHElAjzR3RlSX5QHs0fFZi17Z8leIg8nFIExJ7TB31jh7NIMv8 J7rg== X-Forwarded-Encrypted: i=1; AJvYcCV4Q1KMYAdVcrY0nsEAnvij+O8Eez/ACo7ZTxl5umDV8Gy5Y3sMcqpAxofGOnYeM9jPNjWRdrNAUQ==@kvack.org X-Gm-Message-State: AOJu0Yxv3ZyZJYkhX8mK7zHm+B95p8SzRC4VMilXl7/sUhyTWy6G1MJv oWcbJT5kEzJ+OQdNq098Zd12AvPiTMhh0/X3I2y/LM/u/o/NZ3DdLo2AN+7brHy8VU/SeA== X-Google-Smtp-Source: AGHT+IGG+kPFiJE3B/odsMz1ETLGa3V2S5NMwNDqcw7c4uCRCsh1XEHgPCNnT2AiKU+A8bBdmV2pW4ZW X-Received: from pfbcp23.prod.google.com ([2002:a05:6a00:3497:b0:725:f14a:b57c]) (user=fvdl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:3924:b0:728:e2cc:bfd6 with SMTP id d2e1a72fcca58-72fd0c679b4mr6370617b3a.18.1738190566976; Wed, 29 Jan 2025 14:42:46 -0800 (PST) Date: Wed, 29 Jan 2025 22:41:48 +0000 In-Reply-To: <20250129224157.2046079-1-fvdl@google.com> Mime-Version: 1.0 References: <20250129224157.2046079-1-fvdl@google.com> X-Mailer: git-send-email 2.48.1.262.g85cc9f2d1e-goog Message-ID: <20250129224157.2046079-20-fvdl@google.com> Subject: [PATCH v2 19/28] mm/hugetlb_vmemmap: fix hugetlb_vmemmap_restore_folios definition From: Frank van der Linden <fvdl@google.com> To: akpm@linux-foundation.org, muchun.song@linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: yuzhao@google.com, usamaarif642@gmail.com, joao.m.martins@oracle.com, roman.gushchin@linux.dev, Frank van der Linden <fvdl@google.com> Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 431CA14000D X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: i5xmnqe6aeeiwc155exztk47mn8ctii8 X-HE-Tag: 1738190568-320316 X-HE-Meta: U2FsdGVkX1/0/KuEiTFo8tUpxuJ2IpPTOj6TBB8Prf5/vp/AA3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e9omgfue684gBwyFQYk3wEWvEaLwZvgFHRB4BvSW9sHFmqPQ7vhF3UVHECWlFfE5/0ZrHf3v50l7nl3V4gmx1fHkBaVdl8fiN9+/6WCuhwh6iTm85za8BVAlVoSE3BHkeyjO6dEIGiqWLa2ByDnBHXa0GuR0kHgowGxDS4WiJHvvxtJgSg44irmt3s6eIhBJ1n3GMW8zv5pKW814K3C6wFyWjLrRr37jNIAU5jtYuCO20b1DuBi/yP/09WGpSYpw0HLTByIrfuDEf7Hif5PgOeZgoLGrN/Q7yW6u0pUqhHOZhX10sRX3/TzVTJc7TTVMSHra9JDWl3P3k3WPpkWRxM9lwoavtngk7vsjH0Hnfuop497x4s1hDSU6d/EBcQsE9cek/0jAjNXD0f5g+SXXlGCZdCbFr9EoeMk4L1vQEglGi1rqyvXO1JFc+S4+48w7w= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
hugetlb/CMA improvements for large systems
|
expand
|
diff --git a/mm/hugetlb_vmemmap.h b/mm/hugetlb_vmemmap.h index a6354a27e63f..926b8b27b5cb 100644 --- a/mm/hugetlb_vmemmap.h +++ b/mm/hugetlb_vmemmap.h @@ -50,7 +50,7 @@ static inline int hugetlb_vmemmap_restore_folio(const struct hstate *h, struct f return 0; } -static long hugetlb_vmemmap_restore_folios(const struct hstate *h, +static inline long hugetlb_vmemmap_restore_folios(const struct hstate *h, struct list_head *folio_list, struct list_head *non_hvo_folios) {
Make the hugetlb_vmemmap_restore_folios definition inline for the !CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP case, so that including this file in files other than hugetlb_vmemmap.c will work. Fixes: cfb8c75099db ("hugetlb: perform vmemmap restoration on a list of pages") Signed-off-by: Frank van der Linden <fvdl@google.com> --- mm/hugetlb_vmemmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)