Message ID | 20250127232207.3888640-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 76E25C02188 for <linux-mm@archiver.kernel.org>; Mon, 27 Jan 2025 23:22:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6877328012E; Mon, 27 Jan 2025 18:22:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 638B728011F; Mon, 27 Jan 2025 18:22:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 43AFC28012E; Mon, 27 Jan 2025 18:22:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 2174328011F for <linux-mm@kvack.org>; Mon, 27 Jan 2025 18:22:37 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id ADFA91207F1 for <linux-mm@kvack.org>; Mon, 27 Jan 2025 23:22:36 +0000 (UTC) X-FDA: 83054808312.15.BAFC8FB Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) by imf02.hostedemail.com (Postfix) with ESMTP id E6E4080009 for <linux-mm@kvack.org>; Mon, 27 Jan 2025 23:22:34 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=tCgItW8O; spf=pass (imf02.hostedemail.com: domain of 3ORWYZwQKCAgn3ltowwotm.kwutqv25-uus3iks.wzo@flex--fvdl.bounces.google.com designates 209.85.216.73 as permitted sender) smtp.mailfrom=3ORWYZwQKCAgn3ltowwotm.kwutqv25-uus3iks.wzo@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=1738020155; 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=zdlGmP9L9NTeXFx5SYfMc8nzNQTgYbXoPVkbkgOx1Bc=; b=GGKcADdwr2UEIB832+mu5mnEQVPHdrIqBsaqjrO8C5kyuVERHE98HcSJi6i9pKp+a93npi 7ijpXJjQYQwqWka/cP3SlSvk4r7z4O0TMGEeVyq1Tx+is3twAMleSc/Gzes29iBNW7IAbw pWUxl+SwZezdsCgUqtVU7DsJLX8Wwpg= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=tCgItW8O; spf=pass (imf02.hostedemail.com: domain of 3ORWYZwQKCAgn3ltowwotm.kwutqv25-uus3iks.wzo@flex--fvdl.bounces.google.com designates 209.85.216.73 as permitted sender) smtp.mailfrom=3ORWYZwQKCAgn3ltowwotm.kwutqv25-uus3iks.wzo@flex--fvdl.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1738020155; a=rsa-sha256; cv=none; b=4VzsJyVtUDpwCMY+v7b087SWedA3jQl3AB+PVpBM5dac0wSKB1YVFQcYdWqTzFGOjUnzzu Z5BiTwEESzW32BwrNguKlTrrHgKdS1cU89lkL4Wyk3XqWnQyu7ihl3oj8r8bq6VlzO4ETh nXSMFaLr1VwCw4IAO8AYBXi66E2trEU= Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-2ef909597d9so14693615a91.3 for <linux-mm@kvack.org>; Mon, 27 Jan 2025 15:22:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1738020154; x=1738624954; 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=zdlGmP9L9NTeXFx5SYfMc8nzNQTgYbXoPVkbkgOx1Bc=; b=tCgItW8OIRYSqaf+jWYsit6Zi8BC3bOj7fDcQGvgLxWIprMDK5rb7WBhUTeeos9JX/ eqLqWrK9nx0uSakVBbkcB9i6hiFYeUWuhRSVRrJzBmktOHyDW1pEXRudu10WN/Us8JvS 5uKtHIzRkEeksiGmqzhusj0TjWRpYzy6F4axPsWdOda7lvA8xYqThH1Xz5ft63O8pFJm 0oTxCc4p2r/IxU64Hp07Qa2pifpOBiEaHUPNnoDFXQgCzn+kSnkOi9cGq6olOFZgXaYA OfhXHJMnPmUhUMEVoZaHmTymtFquZn3EXZS7HPK0TkPEz0M7xjwK+ygPs1b9KOqm0pfL CLrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738020154; x=1738624954; 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=zdlGmP9L9NTeXFx5SYfMc8nzNQTgYbXoPVkbkgOx1Bc=; b=EwOKqEz9oO6nebxWhWoPbuC9sECNsWFan9Cx5YC97DqnwxMM/fp96ARpls/d3ACXcn FZymo0YMqdM7yt4OzY7desBrZjy67aQ73sGAS0ix3Vu2+bS4whEpIuIwf9c0WoTahYRE HcaiphnPmemmxeQXiLStHVgbZB1f7apjC0HWtfDN3yNFW1W5ON7kr9/V84rC8lTwO3/+ ym597eHP3NaHdHt7HMdwnKtb720laL1ZTxBAfnytB9Qf72Ts+4ynNWav+8T+R+gnNgO/ FunnpyuzQHuBvzdw9yNL+12TBgQc/V8/k/zdqGRktS+wmswBzNx3Mb4aZXykW0yUAFQO VJ9Q== X-Forwarded-Encrypted: i=1; AJvYcCWZM1ReZBEpD6M6NFsvwY/MVFfBQt4hyNDH/gam68fjc3AhN3D28AY6byZN/Uiw6Hwy4m3imyOkZA==@kvack.org X-Gm-Message-State: AOJu0YytZjnwOVjp8qeYhew4mnVOgSNXaceoK7R8IlDk20Jt04XyiIO7 qeI0HmNG9DPAms2tgb+DzvDVO/0YEK32djuxnLmv1obrAJq9YjXi0IkEGE2rrLQ6QCTu9g== X-Google-Smtp-Source: AGHT+IFlFbrxNKithJCsS+Ck+q6dt+mbWvci6cGtOTdu4D57StTnGf5tAZyUAhoCUWfD8qTUOWq9gHhk X-Received: from pfbcg7.prod.google.com ([2002:a05:6a00:2907:b0:728:aad0:33a4]) (user=fvdl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:2443:b0:726:c23f:4e5c with SMTP id d2e1a72fcca58-72daf9be6a8mr52518917b3a.1.1738020153756; Mon, 27 Jan 2025 15:22:33 -0800 (PST) Date: Mon, 27 Jan 2025 23:21:46 +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-7-fvdl@google.com> Subject: [PATCH 06/27] 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, 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-Queue-Id: E6E4080009 X-Stat-Signature: x7hkrm7atbmguun6gapswd839i63krs6 X-Rspamd-Server: rspam08 X-Rspam-User: X-HE-Tag: 1738020154-494076 X-HE-Meta: U2FsdGVkX19Nng2iYXlqd3yt5DBgZK6mSp/amVFP7sV+H593WKZ6Uxg0pMQgAJlzJ+w4Pu9SemDHWpFb0S/HJjEZJM0OK55q+nNu4zNb68YXS+1JCQbMq9+ZzXm/jg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nl1omHE4t38nT26+CCzuBkQQ0R9CnZ7vmeYJ2LqXENy1L3QOSDhvquLodMd+NdDtqPouL8bOXhLtxEHGAQllE3xwHYofjtATBMpuRkc79dq4cAqrtK8+7qOwry9J0VnVAdkKxzBqv9kePoMbA4gak7SpelXMnQKBNqf+vMkz86G+na53+xRVHYLGr9uXs2nttjqr+02T+V2zurcTOLGWeG5DAsOpQA2HoMr3Gw13d2SertGgTI5tTGfJnQkcnM2l8TlWW/Z55UM+emmFXbg8TViOZbwL0Q0wGLeb2gfy43yZ2SuMsIYsa70JZV19hcUudEAdEShaQ5Ue9M+y/VyTBWTuWEn4KoMZTOPGQbpj+KcPILAay 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: <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 1441a3916b32..42d8334d13bb 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(-)