From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B100606A33D for ; Fri, 4 Dec 2026 11:32:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=km3NsQq3 Received: by kanga.kvack.org (Postfix) id 603BC6B05BC; Fri, 4 Dec 2026 06:32:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5DC116B05BD; Fri, 4 Dec 2026 06:32:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4F1E06B05BE; Fri, 4 Dec 2026 06:32:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 31C6D6B05BC for ; Fri, 4 Dec 2026 06:32:21 -0500 (EST) Received: from smtpin04.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay08.hostedemail.com (Postfix) with ESMTP id AF3FB140295 for ; Fri, 4 Dec 2026 11:32:20 +0000 (UTC) X-FDA: 85506087240.04.619573E Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by imf26.hostedemail.com (Postfix) with ESMTP id 1B884140007 for ; Fri, 4 Dec 2026 11:32:18 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b=km3NsQq3; spf=pass (imf26.hostedemail.com: domain of sashiko-bot@kernel.org designates 172.105.4.254 as permitted sender) smtp.mailfrom=sashiko-bot@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1796383939; b=41Wr0UEiEtHW4cnHrdd9CN3gejNKJMHQ8YFn62QFFy4a9wcF5j3n3KeElTbLcx39IHs7B5 Afw08T+5Oem1vTa11RwQSKR/panSTNzyFFVegWR0+stIHSfp4HTl8M3EtwO6RSNVpI5ysX v4bkmfH4wLwbRW38w1NDgpraSEIgPmw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1796383939; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=HzQVzndOZDTYNKNT3Q9wM76BuZuA75p8H3orN6w5sGQ=; b=ogh1OVJ0FTtjm/MJjgwESM2L5WmXUoqsyuEkZGT2YIVRjc8erBDs4Xb1xGxsu1Nv4HFRnf 5vFQV7nem4qLO/DBlwRXQbyvQKGY9CQUsUtNU/cxydN15H6OXvsGCr6SGAhGHFIBxf7gFz d4ssik714sHjXV64UezV3yCcyzJgxtE= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b=km3NsQq3; spf=pass (imf26.hostedemail.com: domain of sashiko-bot@kernel.org designates 172.105.4.254 as permitted sender) smtp.mailfrom=sashiko-bot@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 9189D62F80; Fri, 4 Dec 2026 11:32:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D2611F000CE; Fri, 4 Dec 2026 11:32:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796383938; bh=HzQVzndOZDTYNKNT3Q9wM76BuZuA75p8H3orN6w5sGQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=km3NsQq31NExJwqHK1iiKgPIeG3aMsqvOy97ncpOKnhdN3vUQYrOziyhm2E0x2z0Z jQicQ3VowelELxWgzlD70/77kfMBsjazpeV6cP0PO7eh4MsF/ul3qoeB9JMLw0ONoK Pcm4cF83MOAI4gpPB5lZFHuJRCRE5vOeMbxiR6sczLGtavoDV7ANokm4itJbgvNZN8 uc5rueMtcLNcoHhCGl8AS8XaQt0hLilbJNGCjlALcYeaNXp3gao59PRl/nyq/C8eXO 0vNPDaf+zeRWghIEkb8gjxWtdnCk13GD7TKOqIB99gO2FrT1/ZB5v73Sa8kgso2NgR 2Uhd4k03aNZ1g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] mm: page_alloc: use correct names in comments Reply-To: sashiko-reviews@lists.linux.dev To: "Li Peng" , vbabka , hannes , surenb , mhocko , brendan.jackman , ziy , akpm Cc: linux-mm In-Reply-To: <202612041514435383505@cestc.cn> References: <202612041514435383505@cestc.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 11:32:17 +0000 X-Stat-Signature: 5h6qpgs9qxjf3umfh5xzkokaczbbrwgk X-Rspam-User: X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Rspamd-Queue-Id: 1B884140007 X-Rspamd-Server: rspam01 X-HE-Tag: 1796383938-140031 X-HE-Meta: U2FsdGVkX19r+iQtZFjs11A+YZLPAaqSMdqN6q8N8GgjTD8OWpTAD0Z4E3kLc9VEE1XnxiIPGg9pvsBR77owySqruiLDhNeIWWONNWx2fuYe6nxHn/RVetekE0UFq7BFTwXLDbnGoWONkcVSzfcXuJ1dUSToDU56NxBlFs6sv3pdF8BMTJKMbcYfaC9cimfEabzZ4sXO6q596muNtjMa20vz4v2O9KTs5/iEDGUPhTnmDWqB3W8xdrd6a+XHP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xBlPN21Z9HFOfxjasFbv+YofmzyWOm1G5LYEP1OaZ2GPDj8twpw3UQ1yzJSMpvVwRWYnYuYcR68/cKRNcE3XbMZkyATxSr601zUyecpIoN8uhTqamfasxS4gMYXNNRyaRF+CBILxlQdk6sIN6YSiqibV+ue9KgpplsWDvj3UjxH0INitH38b0FY7CP42ewkeYmKD0ldl8pDhGynLOaokVpOsF/3eCojf51q4iYZDzT3dMRVQxegUfFVgMOTlgK6I4/mmo7q3eE7vAq82azq2LpupfqN9kaKB2kzSP1rALfaq5mQLfplXVFy8Ok7f0XpXx8vIWH8kjjmbDII6e39/mS1fqdixiWmGTzoSxB3oWGEo7yAlL48M6MdQPwoymOZX0Ea1O+NR/CVDHYhSDS7Kt6tR3V4iAkflBjePRiCJ/A3WlEIXF+CgDLSDYKPwk3+FDktVOesFvkyVoTmg2HiiQqiFHu8Q5xbMFqov24b8YhRaQ= Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] mm: struct alloc_context comment in page_alloc.h remains inaccurate -- commit 13c5027028d24a5e197ab6d511a71cee69960e28 Author: Li Peng mm: page_alloc: use correct names in comments This commit updates the comment above struct alloc_context to replace __alloc_pages() with __alloc_frozen_pages_noprof() and preferred_zone with preferred_zoneref. > diff --git a/mm/page_alloc.h b/mm/page_alloc.h > index 917653ae14a3d..eecf8430a9e7a 100644 > --- a/mm/page_alloc.h > +++ b/mm/page_alloc.h > @@ -69,10 +69,10 @@ > * family of functions. > * > * nodemask, migratetype and highest_zoneidx are initialized only once in > - * __alloc_pages() and then never change. > + * __alloc_frozen_pages_noprof() and then never change. > * > - * zonelist, preferred_zone and highest_zoneidx are set first in > - * __alloc_pages() for the fast path, and might be later changed > + * zonelist, preferred_zoneref and highest_zoneidx are set first in > + * __alloc_frozen_pages_noprof() for the fast path, and might be later c= hanged > * in __alloc_pages_slowpath(). All other functions pass the whole struc= ture > * by a const pointer. > */ [Severity: Low] Does this comment still misstate where struct alloc_context is initialized and which fields are mutable? These fields are initialized in prepare_alloc_pages() (called by both __alloc_frozen_pages_noprof() and alloc_pages_bulk_noprof()), rather than directly in __alloc_frozen_pages_noprof(). The two paragraphs also contradict each other on highest_zoneidx, which is only set once in prepare_alloc_pages(). Likewise, zonelist never changes after initialization, whereas nodemask is updated in __alloc_frozen_pages_noprof(), __alloc_pages_slowpath(), and check_retry_cpuset(). Finally, not all other helpers pass struct alloc_context by const pointer; check_retry_cpuset() takes a non-const pointer and clears ac->nodemask. Updating the comment to name prepare_alloc_pages() and separate the immutable fields (zonelist, migratetype, highest_zoneidx) from the mutable ones would match the current implementation. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/2026120415144353835= 05@cestc.cn?part=3D1