Message ID | 20240629013322.12364-1-richard.weiyang@gmail.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 9B958C2BD09 for <linux-mm@archiver.kernel.org>; Sat, 29 Jun 2024 01:33:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1FC086B0088; Fri, 28 Jun 2024 21:33:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1AC3A6B0089; Fri, 28 Jun 2024 21:33:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0733C6B008C; Fri, 28 Jun 2024 21:33:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id DF47C6B0088 for <linux-mm@kvack.org>; Fri, 28 Jun 2024 21:33:45 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 45BB41C0B65 for <linux-mm@kvack.org>; Sat, 29 Jun 2024 01:33:45 +0000 (UTC) X-FDA: 82282204410.19.D091862 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by imf11.hostedemail.com (Postfix) with ESMTP id A47AB40004 for <linux-mm@kvack.org>; Sat, 29 Jun 2024 01:33:43 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=BMZe2qXB; spf=pass (imf11.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.54 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719624805; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:dkim-signature; bh=zCZbfP3u3ZH4Gvot1gex7hMp9QgO7GRM3EA/12qDQkY=; b=q2WKc/EJ0w4+ygHRfFTqnObz12HhBBGT8kUtnfA76dhUvZ3PQmbfllgXwwFRCQ+z0GJYlR uXv9xB8eZuyMTJQhl/Zz5z27mlh8kKReZOlGVa0cR5rKIA99k+K4GnRkYCi2tyCYac19HJ f9lWKWzVWM3H2vv5UcmqRrxWf1MGnJk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719624805; a=rsa-sha256; cv=none; b=7d4yGpRosuJ/YcW0B9eOOzanHCH/qK7b25XViGC8YFDbMHHl/DR3LWdxsYNHH8U4e7tdLj 4Sus6qLKZtMiWTLCZPJzMxOjhTWOSvgjUgZGfrvYOQK++ovmUTGuGwsEOA+hmM2W8mN6Qv 9wKw1fe4Da7oWggwRdL3GvopPTeWJG4= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=BMZe2qXB; spf=pass (imf11.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.54 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a6fdd947967so116534166b.2 for <linux-mm@kvack.org>; Fri, 28 Jun 2024 18:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719624822; x=1720229622; darn=kvack.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zCZbfP3u3ZH4Gvot1gex7hMp9QgO7GRM3EA/12qDQkY=; b=BMZe2qXBKXopzN1GO6+49RS/Kp+wJ5DX0vxwzazR2xFiJgMlb6o4hR7vjzn1xIQJQP AiR57LCHr1HyhF/Z3z1tR5qVS5AoYbFjQI593i+E0egaKfeaptDCyezDmrjJmB6P4iaJ HOBt4hBkR0evpKeRyfE2RXrfUvZt6z/IOg5AnWr+A6HLVix8CD0OgB3dE25K8sFQecng BX4L5Sq4Cherz2mln9mpMtGxmswz7SSV3xE39yTG58OWr6uT3U4JRkYg3wculuSokojJ UEKOji3wYWvYJENw6wdUlAQMjX90E7+5s+0VXH6x2Q8iF4mE6va8thRXbtp0dAJElsd3 DXDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719624822; x=1720229622; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zCZbfP3u3ZH4Gvot1gex7hMp9QgO7GRM3EA/12qDQkY=; b=mSad15Ng30E3dD/LQjjL6W8nkpGWNlmKjzxWXPjuEn3HQYAc7Vqt9SfzDNcGiAU7M7 /g0Tb6jrXkr+NE/QN6yyOlWOZQgHO3cQAdc+9zKdqi/voVqNTbYUEBchTs3MI9E+nxgS kmSoM59g2jAo/5wWaK1Y7MEeCicpikvJjWW/7F+aWelbuMYFNLEJD5BsDrCnekoOrxj1 w5C5xbbdzI8sFSqy6AgvnFLmWVuE+cEwYglwQ490k7V9AN0Kqu7Pv0admQyf936ymiaZ di+o5mEhyEuIMiXoD+Dl9uxU3njcGrTiq2lmLDIJl1C6zg46Zi/Z64yecg5K/ALvQc16 5ZQw== X-Gm-Message-State: AOJu0YxCHIPf3uGbtG+6u7FJXqVFiyugG4bKtK1YBvFdmr/QU5paXNpV TJQ580BEAsbRYOM89kLTVjby3lFq3ssytM8KwlL1hZ33ysDAS/vs X-Google-Smtp-Source: AGHT+IGDmYpUNHzWD89cqGNfLPfwZ4zd4GoQZX1fLzjyd3tGiw7rVm/YcLphpmadsiOiQY0Y2XnHyw== X-Received: by 2002:a17:906:3748:b0:a63:49d3:e1c5 with SMTP id a640c23a62f3a-a7245cb2444mr1314023566b.64.1719624821676; Fri, 28 Jun 2024 18:33:41 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72aaf18c99sm123762066b.2.2024.06.28.18.33.40 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Jun 2024 18:33:40 -0700 (PDT) From: Wei Yang <richard.weiyang@gmail.com> To: akpm@linux-foundation.org, rppt@kernel.org Cc: linux-mm@kvack.org, Wei Yang <richard.weiyang@gmail.com> Subject: [PATCH 1/4] mm: use zonelist_zone() to get zone Date: Sat, 29 Jun 2024 01:33:19 +0000 Message-Id: <20240629013322.12364-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 X-Rspamd-Queue-Id: A47AB40004 X-Stat-Signature: 46s7jbbjwecbxmtosdzehh4ihmahqx66 X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1719624823-836811 X-HE-Meta: U2FsdGVkX18vP/nSK27fNk4iGufWGMnvLDEtb1MWRjEtt8eCljofGlLJhUVgpWIIERlB422M2t9owICfGUImbBiLtJ6wSqG41Xm7TFJ2a24wJ3rbv+XZy/xvPp+AiKiCqEiKWY9IMwr1+k3iQku6HVvDkhkPcPQm7f7EsEfqO2jtRmtqgzzPwScpzefeG9tN5w9UA2yM8n/3PCq0ReFAq+m1GXS99UyIgEw1KrG/+cgTJumb/0XG4V7zdfCJ9sDFvMuckjPEf7Fq8ZBOgFYEQ9t1Bgl3ozrgrBT5uyiZZjt96FhJXPKh1UUPX7NTysEDiKBjKd79VYPU+7fXPRFBzt5AzVtDwkM45I559Xs3/oYeLETL+oM1b6Q7LrhNmkXQw6FC7M7jp1ObXXoxBA7xIHtH6NJMEyqKEuI5rIM8LJlJsEecfRXtVWf6EaZVt+1BfcDpcQtVTTkS+f6SQOt4ulnr/TSaxW8ipTSrLG6A8LT4RAiZggz/FQmmkGHs0qtClfj8aRKFuU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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 | [1/4] mm: use zonelist_zone() to get zone | expand |
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 586a8f0104d7..f983a15be18b 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -1688,7 +1688,7 @@ static inline struct zoneref *first_zones_zonelist(struct zonelist *zonelist, zone = zonelist_zone(z)) #define for_next_zone_zonelist_nodemask(zone, z, highidx, nodemask) \ - for (zone = z->zone; \ + for (zone = zonelist_zone(z); \ zone; \ z = next_zones_zonelist(++z, highidx, nodemask), \ zone = zonelist_zone(z))
Instead of accessing zoneref->zone directly, use zonelist_zone() like other places for consistency. No functional change. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> CC: Mike Rapoport (IBM) <rppt@kernel.org> --- include/linux/mmzone.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)