Message ID | 20250129224157.2046079-7-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 EC394C0218D for <linux-mm@archiver.kernel.org>; Wed, 29 Jan 2025 22:42:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4F755280090; Wed, 29 Jan 2025 17:42:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4584528008C; Wed, 29 Jan 2025 17:42:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 27F20280090; Wed, 29 Jan 2025 17:42:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 05D7928008C for <linux-mm@kvack.org>; Wed, 29 Jan 2025 17:42:30 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 88AC5A0486 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 22:42:29 +0000 (UTC) X-FDA: 83061964818.15.211BD63 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) by imf03.hostedemail.com (Postfix) with ESMTP id B281B20004 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 22:42:27 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=RT+TmJKk; spf=pass (imf03.hostedemail.com: domain of 30q6aZwQKCN0EUCKFNNFKD.BNLKHMTW-LLJU9BJ.NQF@flex--fvdl.bounces.google.com designates 209.85.214.201 as permitted sender) smtp.mailfrom=30q6aZwQKCN0EUCKFNNFKD.BNLKHMTW-LLJU9BJ.NQF@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=1738190547; 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=HdRvrkoUQwVvcsaszF053Gf7pOvYwH0DkTGUOoJ3gDo=; b=Xiv1GSHBWQM7KA6hIWUgEgoj1/lKeYzwN5haDs9BhCzlJAh2j0rpNwloTfQtriFxbZhCh/ ELs8u3A0X9hTTm8aFP0KZsdH7/F0yK/3m55SKrT4dafbj5AoYBoeW1vmqGzpmWLarNVYsc 09lLIgINsnNbr3glx3xsoD36sRclXT8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1738190547; a=rsa-sha256; cv=none; b=ExMH6FzZbt/gLrz+TlPsiU2RR9s6/KLq1+uKBOuIIVJqQoAypdDpddIK1AIGhI3C5lojko 5QmWVdFIZaiYKc3wfWGq08b/GE4hipbzWrox02jKbhQADu5BDtdZ65hUsv91xK7PLYQ/fe 6kVb8gLmolC2C5i2N9eDFuW/Jl8Ul20= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=RT+TmJKk; spf=pass (imf03.hostedemail.com: domain of 30q6aZwQKCN0EUCKFNNFKD.BNLKHMTW-LLJU9BJ.NQF@flex--fvdl.bounces.google.com designates 209.85.214.201 as permitted sender) smtp.mailfrom=30q6aZwQKCN0EUCKFNNFKD.BNLKHMTW-LLJU9BJ.NQF@flex--fvdl.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-216430a88b0so3397895ad.0 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 14:42:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1738190546; x=1738795346; 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=HdRvrkoUQwVvcsaszF053Gf7pOvYwH0DkTGUOoJ3gDo=; b=RT+TmJKkFGmS1JLq3P1VawkdtLlVg/qcaZsDCYodhAyOtpOlCWkDZCaEmx4x38vuwy erbKe3SuCZVfDTLp1ApVYAHpECa0IcCVuBW/ZGMGjmi8piOH0gnWvFZOBm3AyNHAcqME gZ+0OxybpjHikQgmsDG+MdxNkMZadhZVD8omwUUu3lKK7/mnvhXc2xBZvROHUHHAmHJ0 lodarTMEjq8Ghf4Pzi26aFi5IG9tJvNQDHs6afUIw2EyGUPUBTDwzSfk/PHOCF9KulJ5 OXw6ZJkZZcqTe4UTh57xruxXyArAI5NJbnrH0IrhE0FFF14ro7Mbdd4j+jEVn8ctzkYM DJXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738190546; x=1738795346; 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=HdRvrkoUQwVvcsaszF053Gf7pOvYwH0DkTGUOoJ3gDo=; b=FhF4f8TOv4fg0LTElmDdMraR6VqrjOH9yQdPvstO1hRp0+xbfxjVzfnECV05gDYgbv McfWnwBPVSnjXRvP76gb2Op+/q9Gl500UBAKLjvkb4x5xJCCSsed3gUv1fTQnR2f7Wao DS8GmJZoFCfcFLAoKIhIOJFpHabpW6bUcfRhtDgd0U7AdNM4zELXR55htdsOrMbSmQZF 8e4nbk0CM6L1zASQZPxKe0p/uIm+0oRlaoKBUjpk381cOBrVbcSFr1AvFgA/mm5fl4/1 W8fvRE+dnUOZNr3ORP9jgpd334XiNc9XlrpvNipfZu7vOttwl6urTtJXyLhPnh273N/9 Q3zQ== X-Forwarded-Encrypted: i=1; AJvYcCUOWsTpmjBo1kiSbET3DVksFW6o02sSxn8crcMCNxhAK0W7VNrSJvqs1DjQvijTh3mDkzuHfoskyw==@kvack.org X-Gm-Message-State: AOJu0YwMrKym1ZaWS53WegIkpiRtW6JhIYsE5/wfpOtW4irAF0dpLRQL 7amZVLXEk+SBBg5mmhhT9khYLUFEsZuS8BYoUmPGcCXDEnep9GTf5QLL0x0i95/4NNg8MQ== X-Google-Smtp-Source: AGHT+IFRGE8bafbhkN5A9bi7pt5tKOVuNMtgjq5HbfI2cYsNenspZDtaK1fZTtPkQMrimOxYLTsrX/5U X-Received: from pfbcq13.prod.google.com ([2002:a05:6a00:330d:b0:727:2d74:d385]) (user=fvdl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:4d05:b0:1eb:22e5:bb76 with SMTP id adf61e73a8af0-1ed7a648dfamr7753541637.42.1738190546527; Wed, 29 Jan 2025 14:42:26 -0800 (PST) Date: Wed, 29 Jan 2025 22:41:35 +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-7-fvdl@google.com> Subject: [PATCH v2 06/28] mm/hugetlb: remove redundant __ClearPageReserved 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: B281B20004 X-Stat-Signature: j9wbxsn5wujyrnieaz6kt37x7dhhxwjj X-Rspam-User: X-Rspamd-Server: rspam12 X-HE-Tag: 1738190547-975827 X-HE-Meta: U2FsdGVkX1/5ZQE1V2VDBbRuzdncPJJETOCqrG4uuYzLc5fPa16A6KSr66B1QpBZYQS3U5XFt+TjyvO2yfCl+rsRHmrzIhHCNfLeheEhGZ5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YYCLDXP/FkCI57VSUa0TzIt/dJ3Jn14CSgSY29s3T8OyCjhQWE6h5/asgw+5oJ+XrwMhz0sSrV0W5H3UzBK1hxhXzXQHPrUscGN8X2KkVeGYyX8mEMaHy2nIElNf3GfoY79x4UNx91u/fjoKyKv6zih7Fx4R+p6CpMjoYxWO2McYXmt2fjmpeXftFwtrkJep2ikGH6pJM/eIEX2OYBJP4LRMk+J7J8mo/kGQbjTHopiHtU5WcfnoEQTWfZmd5X7qRbe6tG3N03R4RbZfmx9bxEUHaAI3mEbyrLq/Mhj105jIR/XXVJGkl6zJF9CDVwCEQdjuCNeS/+uR5q1IIUHU+C0FbL3ISw/g8avsMMTJegnIEq8uAqNnwBOVPCNUleilSWUpBpjG4MgYgcoW+uuUs= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000040, 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.c b/mm/hugetlb.c index 18d308d5df6d..196359254cfb 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -3202,7 +3202,6 @@ static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, for (pfn = head_pfn + start_page_number; pfn < end_pfn; pfn++) { struct page *page = pfn_to_page(pfn); - __ClearPageReserved(folio_page(folio, pfn - head_pfn)); __init_single_page(page, pfn, zone, nid); prep_compound_tail((struct page *)folio, pfn - head_pfn); ret = page_ref_freeze(page, 1);
In hugetlb_folio_init_tail_vmemmap, the reserved flag is cleared for the tail page just before it is zeroed out, which is redundant. Remove the __ClearPageReserved call. Signed-off-by: Frank van der Linden <fvdl@google.com> --- mm/hugetlb.c | 1 - 1 file changed, 1 deletion(-)