From patchwork Mon Mar 4 11:07:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 13580425 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 DFE72C5478C for ; Mon, 4 Mar 2024 11:08:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 789436B007D; Mon, 4 Mar 2024 06:08:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 738206B007E; Mon, 4 Mar 2024 06:08:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5DA106B0080; Mon, 4 Mar 2024 06:08:15 -0500 (EST) 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 4843D6B007D for ; Mon, 4 Mar 2024 06:08:15 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 1E8371C08A5 for ; Mon, 4 Mar 2024 11:08:15 +0000 (UTC) X-FDA: 81859082550.09.EAE8B2C Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by imf25.hostedemail.com (Postfix) with ESMTP id 774A1A0022 for ; Mon, 4 Mar 2024 11:08:13 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=Nmb78OvV; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf25.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.215.175 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709550493; 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:in-reply-to:references:references:dkim-signature; bh=KtIXFJcfM5neAeyBfBxq1hZ3fmqqVOtLZ2hkhXv5tMY=; b=mfKCIkRgb+szH4FOjJr2sfh6MLoYVtT3NFYjJJ8HjCavd1AbtvTW4ofC6YE5fFA0v9/OCD c36Pvl9AP7TmOF8bN9G/G5JTCvJ9pEbjUYRAUbZqUGl0udDDXlf7XyKH+vh28odeKbre4A SQZ3qq0pHSz0SPON3ICMnDAe0LYbIqg= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=Nmb78OvV; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf25.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.215.175 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709550493; a=rsa-sha256; cv=none; b=41mngIi+ICmwraGZW03QWZpfjGXgb53sIYfbpwkMsmt5RWyAuBpsZSIwG26YV+pvSrIgGU 3Yga+8QG7jUepYUAVlhrbX5OEI3r02PzjW3eZl5yf57FnrKgxhSijIv1ipnYC71rS1vHhB w8Oevwer08ZGtor3gz3tJ+B2EV2fKjg= Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-5cfcf509fbdso1680785a12.1 for ; Mon, 04 Mar 2024 03:08:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1709550492; x=1710155292; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KtIXFJcfM5neAeyBfBxq1hZ3fmqqVOtLZ2hkhXv5tMY=; b=Nmb78OvVBYXob4a/HKl8wFJK56qMBp41mQQQMCoZ+xkd2gHaP+5L2CgiSXhOPRLkCO 7Q8NtFo95o1EOB+WCx8PNNhCuVExDVM3AcV+Tbe8ZJ73PDyzqRdX9jKgZVyWxKICP6Mg S/zXepp+ZwPgHT03VejhElBXHge3QNYnQRgJdpnjc9dvPEvrzfzk+RwC327uNusxIFkq 6jOrHJfDgbbYcQJ6nVO+CS5wMyHUm/Mb+E8AxTdUxZUdcdVXjri8YrxwL7SCUFDaItRD 97bWzYKhECVYE0yCrXqkjeNDR4Fi/1d9rSWu/bmuzs97pf3lTF5j78nCgMAWcgLPlxLF YHDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709550492; x=1710155292; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KtIXFJcfM5neAeyBfBxq1hZ3fmqqVOtLZ2hkhXv5tMY=; b=MIWMBFNfZqpQLWoIX3l9D4k/hy6PkFZ+3lJQqrqflrfKDsPL+rKwgZTv/oLtpy2fDJ pYrUB6zStSSVmF8hy5JWtNa8LYWvgQVqUYxvS7r1kR+XoaVA5Ye+s/j7uLnawGE9LQOT q1UitOhsUj/vY9C9gENQae1gL+CKqgxVOEYJUAbjjPT5RgdaS8KBEXM5Szllv7nZ/kal QcNDnZg3EnQ8gPJQcQBdC+/9Wm1nVxiY//oTOuYZwd1Sw7fpL/9SSxX07aYaQwd3ZfvC RemUoUi8k3Jo7LNeM4N0HSgNkN2Y9RA/GdBxzMhckqjWxTxJduTJ8hwB7PCiemgs3HVT VySQ== X-Gm-Message-State: AOJu0YwiJOXpKNcTYspGFKgnt4RHxWPmA+DDT52pSRP552VQYDKk7jO0 HFyl4jKqnVemKANE1nu5En3DGxbrM3AkhygKqLQ+RBPMwMnAqNapuO3gy3c7fCk= X-Google-Smtp-Source: AGHT+IHFdup7gqVcwPWUuP5Df16ockl+ZC0JJEHwoOQgPVW2YrofdTAkF/kgzYWVAY+1V3T3ucMfEQ== X-Received: by 2002:a17:90b:1908:b0:29b:309b:a200 with SMTP id mp8-20020a17090b190800b0029b309ba200mr5173828pjb.3.1709550492018; Mon, 04 Mar 2024 03:08:12 -0800 (PST) Received: from C02DW0BEMD6R.bytedance.net ([203.208.167.154]) by smtp.gmail.com with ESMTPSA id y5-20020a17090aca8500b0029b59bf77b4sm587410pjt.42.2024.03.04.03.08.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 03:08:11 -0800 (PST) From: Qi Zheng To: akpm@linux-foundation.org, vishal.moola@gmail.com, hughd@google.com, david@redhat.com, rppt@kernel.org, willy@infradead.org, muchun.song@linux.dev Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: [PATCH 1/3] mm: pgtable: correct the wrong comment about ptdesc->__page_flags Date: Mon, 4 Mar 2024 19:07:18 +0800 Message-Id: X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: References: MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 774A1A0022 X-Stat-Signature: recbkqgfjiddwwbtfmi5tt4169tyf5z4 X-HE-Tag: 1709550493-278488 X-HE-Meta: U2FsdGVkX1/KxFOuoafV5pm03n+qff+/8HLET+D10swe4/HCGSL/9MQRv3fL4v+J2hJh4MoNYnMKwsIAv06nMLFb8X3q8/dSgSjNRCxV9+ddosrwZEHWjN9TGrLJyu1kD79hq3VioGNOcte3GRWr40eX7YP7DTDj4/Ru/1dCbHIgbqjYcv97cIdD/jmOhbuC7cNzK+wwRWM4fAe6AH2snzr5FPLVGiauDN83wPeaSlh+R7mevRTS6d47s//C6EUiPBvWvQDrXw1kL+ouPqwim5YZ9nWMTzvj43IRIkXWIu5WGVslZisTdGBnoTiVHynFuRjYQd3ZXvDOX6BenK39kkUksTpSYE9/fCgSzZF7xUf1GiHAtMARxxCS4sECcmFyir4y0dQc60v7N9EHhnz/CU9Zmn/2IJxmzikOI0Xm3u3u70vueVyMdIZOGoSJ1ZzrZ3Qyfe+ugHtg4vpK91du9A4nRtg91yX7V3+gfLY02ZLjWOL1hn+hvLKOMb0NxfvQjMwSgqXoSttP6hzb4THpbj1tM7JYZQK3/OHjp47ZJERAC7cdoxwmBdttN6kFm6QT0jvkfiqbclYZv13HE5lR4RsH2F+/wW+IcxtVHfTuGgm1sT9mzLG40vPyrxHihYOhGPNuQ2tPC453d1gUng4+cXX1vqjAPKZQt9B7YBEPkbuGWgBhwfJre+0B5/e5vS6ipHok509I3cr3IBuXl8rVkunx02te5e6rpdfjlnwhdmDibiQ89TBMOWg1TtwXj9oc35pt3jAFEwoAwuWK7A1tK79CDkEdELxCuVtxUziVbJpijUlvL4j0FV+IduKhQWjnMcbXDSVXqFMTndnHSmFTE8jXCWMVLH1BCaOFfDtgZvvgsvmLZys/mJyMlnbeoM6H4LQ4tCHDRwjBcm70A2sQkUVYzxXEhJ3dgtwUZSYssqfC6eEH63YbWDOBM36I66+NUXsLeeIs4xiJlL7+xE5 lvBV4vUU YGAS0rCKSVbxVbHH6aCQwdPe4z7idwMl54hLmy+y59205p/+rLuR0+ILuRD08icRqumItlDYyvUleUNmsfq0DDdhbFEx7sTZUdDsK33DYPjx5lLqXk8h1SMuvB3joPVKx5SwqHypLoHKB88ncbOynnXtInjcS9h4kSUmwczBKlLAuLlb83DQGAzDApx8iv0U5Z5xkR3bQGan3dgJDndPn7i1QaUgw5qMgjl6gs59tIZWj02L28sbCSEIkvJugQ226Yujc X-Bogosity: Ham, tests=bogofilter, spamicity=0.000007, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The commit 32cc0b7c9d50 ("powerpc: add pte_free_defer() for pgtables sharing page") introduced the use of PageActive flag to page table fragments tracking, so the ptdesc->__page_flags is not unused, so correct the wrong comment. Signed-off-by: Qi Zheng Reviewed-by: Vishal Moola (Oracle) --- include/linux/mm_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index a7223ba3ea1e..5ea77969daae 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -419,7 +419,7 @@ FOLIO_MATCH(compound_head, _head_2a); /** * struct ptdesc - Memory descriptor for page tables. - * @__page_flags: Same as page flags. Unused for page tables. + * @__page_flags: Same as page flags. Powerpc only. * @pt_rcu_head: For freeing page table pages. * @pt_list: List of used page tables. Used for s390 and x86. * @_pt_pad_1: Padding that aliases with page's compound head.