Message ID | 20250127232207.3888640-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 BCC8BC02188 for <linux-mm@archiver.kernel.org>; Mon, 27 Jan 2025 23:23:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F3ACC2801CA; Mon, 27 Jan 2025 18:22:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EE91828013A; Mon, 27 Jan 2025 18:22:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D64662801CA; Mon, 27 Jan 2025 18:22:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id B3BDB28013A for <linux-mm@kvack.org>; Mon, 27 Jan 2025 18:22:57 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 6B3681207E6 for <linux-mm@kvack.org>; Mon, 27 Jan 2025 23:22:57 +0000 (UTC) X-FDA: 83054809194.08.A9963E9 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) by imf26.hostedemail.com (Postfix) with ESMTP id 532A514000B for <linux-mm@kvack.org>; Mon, 27 Jan 2025 23:22:55 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=vcce83ce; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf26.hostedemail.com: domain of 3ThWYZwQKCB08O6E9HH9E7.5HFEBGNQ-FFDO35D.HK9@flex--fvdl.bounces.google.com designates 209.85.214.201 as permitted sender) smtp.mailfrom=3ThWYZwQKCB08O6E9HH9E7.5HFEBGNQ-FFDO35D.HK9@flex--fvdl.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1738020175; a=rsa-sha256; cv=none; b=YqXzcWYCvW2/Ry9w0iiQm6f71jDj/csggaEFHBe/EoTZaLtQUkAdTz3rUadn+mYFYL9Fuc hRUTZW1TG1MkvSFwSQQMkhM9go3KDH7AGb+AUDQZzyubbLiBzEhPved7QnEzz0r1jSWlFN H7sWJxYtNMMsoDFBp+slMnWhack3O5M= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=vcce83ce; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf26.hostedemail.com: domain of 3ThWYZwQKCB08O6E9HH9E7.5HFEBGNQ-FFDO35D.HK9@flex--fvdl.bounces.google.com designates 209.85.214.201 as permitted sender) smtp.mailfrom=3ThWYZwQKCB08O6E9HH9E7.5HFEBGNQ-FFDO35D.HK9@flex--fvdl.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1738020175; 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=3IkYTW8kZz3Zjb/lzJ45NY5uoq1toAj1ouEPCh4qUFykp6if/3pRmW1cbRqMRqaPzCdGBk of7B5vxHHtL/3BZiWDhw1HeloJOvDzZr6RTif20l1vcpzUrQHzOmxRG7OWJThelEOLxUwj 5b8B/K5UmV2TwAK7VCCn668EQBS3pac= Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-21dcc9f3c8aso4479665ad.3 for <linux-mm@kvack.org>; Mon, 27 Jan 2025 15:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1738020174; x=1738624974; 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=vcce83ceAzO7Z1/Gvx2PGqAJ3VqSCedCRCqiPxRLXoBS3aDeyLMIX8ilecSQV87EI1 ygyu4VGKKZHOuy685GRntpiQhj1jo1qTx4x0dHnwQ+ReXoQNGxEpi9QRy4gKRRj3qtJT pDw0Rl9BfDIof6zDXnQrsS/QC0HZO0hHvRkEvncNtNIivclbeO2UnkYk6OePg+uErVj2 WnBQBX3SWyTxe/nYiIVYf4D7k++w8cZS7nnuw2Zpk6yzudrJA86VY1lMtlrZRQLipeAZ AHR8ZajI5twDEcytuYhqca7HHR+0aVOo6Q9LE0a2vNlt3c4tyouFkJ8uUQKwZrgStMsv 4CeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738020174; x=1738624974; 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=Q6rEoEn6pthxnepDqFWYlX99ORJuQok/2P4RdNPWP9C2NSuIAmnjaN5X002SKOP1lN YEdRoHcn+8bPxnB9ewteDMPl50DI4v05AdoI+eHjNjpwK8E/vhLYhGyvbzM7mNw5V2OM /rwfkQll54UCshVbT50p9CbizvbOcbkOE+kfSexgWUO0ObJrTUGdV0jTcGBkMKMYnEbs UPFo92bzHQXGs8jses6tdnGlFU01MHxhDgPTldmb17p381HF4SLvBDBk4J+zTufGEIOf lTCPBWzUTUibaVZsGcjD4B0FmkyqSu+xtUl1SsCDp0xpYVNKsP15P9o0K64qDWVtp5Rn WC4g== X-Forwarded-Encrypted: i=1; AJvYcCVMEyUEHcL7Kqr+OJa3bCFukd2T8E6zEVBZm/468O07wJyzqJbn/pJZHDWh16pUDLXo5X255eNh/A==@kvack.org X-Gm-Message-State: AOJu0Yz/kMH+/S9BV0WozuBZq4YOsFjgkDcsm3ukSXwHeiCsOc8PE09A QW+zVAimnvk95oUfSkw0KJUpkAKGN4688VyuQfURQkuf/zwsZVCV38vq+Vx/+CceaXmHLg== X-Google-Smtp-Source: AGHT+IE5tGS51aonvqKKCiky34ZGNKoaNnyFsw6cOmWUpKn2utYC2DJvD1y3ko3Jcx5xkeODyc6ZuvMG X-Received: from pfbbd37.prod.google.com ([2002:a05:6a00:27a5:b0:725:ceac:b47e]) (user=fvdl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:8724:b0:1e1:bd5b:b84b with SMTP id adf61e73a8af0-1eb215fb386mr54403555637.40.1738020174191; Mon, 27 Jan 2025 15:22:54 -0800 (PST) Date: Mon, 27 Jan 2025 23:21:59 +0000 In-Reply-To: <20250127232207.3888640-1-fvdl@google.com> Mime-Version: 1.0 References: <20250127232207.3888640-1-fvdl@google.com> X-Mailer: git-send-email 2.48.1.262.g85cc9f2d1e-goog Message-ID: <20250127232207.3888640-20-fvdl@google.com> Subject: [PATCH 19/27] 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, usama.arif@bytedance.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-Server: rspam04 X-Rspamd-Queue-Id: 532A514000B X-Stat-Signature: gt855ystwe9gqci8zrucu39yxjag3mwe X-Rspam-User: X-HE-Tag: 1738020175-495016 X-HE-Meta: U2FsdGVkX1/AIEWjBMCAEs9kfTvhUHK1v9lLAx9BCFXnW6fc7vXFfkir6kW3e0Fp8AxhAMFtmF191T8TclKCVDEDcz5Tzs6deQHoNNzs5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6p9FwD3UUhVvcYT2Y37OG0/ofs+NUruHXJCRwUSLOTseFIQduFWmLh+/Pwmr6DndDprreWIwio/LKjfijyIQpnzS4JXpQ1o7sKqtO3UhnmPTODx6J2g145XhJ7O6MGIJ4FQtCpydoI8ztbtXTqNx0yNQMm9rJ2XEYwFMt9fDt9aCuw5+NsTbpMZBybu3HFLDWKTqRG3WMsDbxITJytBFTd/26c45UW/0j2J6Hbp9E9/Ck0USOyUifUpiauIiuKbbs5yYSMQj+H5+Wqz4SdAAi5grwZM/JqHuJ9ZBlWeDhc38s1652AgvkhJvYn85sXYA42Be+c3WktMoxTxp9tImRkgfbRZIe9pj75VU80tVG2Y9cn8D2K X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, 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(-)