Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1892440lqz; Tue, 2 Apr 2024 00:09:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6CF++NAEv1/8YFr4jeaalVB/CLDQmFCG0N7uok0kD4Ceg/WfCZcR9vAc9h1+7Lc6Y5uyTLOF4KjLi/4NpOVJA4iDhufj9Nk3LbpRW6Q== X-Google-Smtp-Source: AGHT+IER+YwDOoMo6wb9EJvCTdkinHLI33B01hUHvO4kjhfb9jwcw7HbXZ6ZYh7CX2WndQsAP4YC X-Received: by 2002:a17:90a:5c86:b0:29f:67ad:7db0 with SMTP id r6-20020a17090a5c8600b0029f67ad7db0mr10925692pji.11.1712041763599; Tue, 02 Apr 2024 00:09:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712041763; cv=pass; d=google.com; s=arc-20160816; b=G9WZTZosxupUNA7mFhQA5Q+NqJ6E1jyXTVWsSqRvHoEoFNY8Y7A/cPa/jz8KVCprcU GGggpTCEFg/2uNJZymMc0jj0aYQ59uiUpM5W6D2tieAAFH7yHVm0OTaYTv642HknoKH/ fi5izSR07Lmt5xy46TjylBXg+s/YuFUrEqnkaK/y2Pg0yxbsCD16pNI5C/ysgiakb0E0 5O/Adejqcb05Db6S0tqvWoJ8RYb1xQL6AuE79xsjO0g7ErsrMAQInyuY8/KEMOWuK59H wMA0Ww11A/g9ywNsnyshbsyec/kb0lImDR143mnwWn9nrtXwgU6wJfc1fE1O7nXZ82JF MawA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=haQJ60gcyfzT0PPIcpufheaE0XM4vQtB9WG6Oc5rEk0=; fh=GkcQ4wFAR48buG2rub4Pj/rT34MBk3m+OHSUyvLW3r0=; b=cU/FYWmW957zCnln+DozZnTSg1e0bi4hJsEyiqPBlsKccfBE/OpZ5bML6cUvYDYLMp b47xaDURINXyOIHECK3NCrBEPmrANQmwTt+h2EcUfnfDxlNfi5TfNsTKcJsUyZ648X2N i1OMpk7/eohLncwK7sjZB3mbKRUUVhiHdp1V8r9KOv3tJUXZKwtaZ7dmPpzrD8U99hrr p6p2GkiIwb8IomQtUTbqo+npAnxHQv1ilSNzwWKDSLFs0Oob/XleryPl1R/vPL95lkMB /LUDjt632yRQRRjWjABIYL236BpW2Si7DaYXR5dI6mm6mHexQbrXa/Pd0EF6fv8JBvXy 41sA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=DG31QAiS; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-127473-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o24-20020a63e358000000b005f0a512af2bsi5905048pgj.173.2024.04.02.00.09.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 00:09:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127473-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=DG31QAiS; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-127473-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 46EBA2840D8 for ; Tue, 2 Apr 2024 07:09:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EF19383BD; Tue, 2 Apr 2024 07:09:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="DG31QAiS" Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED1F33BB21 for ; Tue, 2 Apr 2024 07:09:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712041752; cv=none; b=DRG4+EQInljyRK5BI0IqrM+rqhKzNw/OhE+QEI8Bs2sOQOlXC/MCjg4ojQBOue5k+02ocqLa4dg919nMyPluC6SPQ+Xwh9ZoMWXEgSrBSafY/RAIrdvNLL5pvk+8KLgbMREfGEmUrij4YaeoPvrNtLsjOQpdQwO3tev51A1v+fo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712041752; c=relaxed/simple; bh=haQJ60gcyfzT0PPIcpufheaE0XM4vQtB9WG6Oc5rEk0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=UH6/kZ7rhfkFsbLClhS/bX6oPsdLFwR1zi0qt9Ao6WucCjUCAc4T/TOOW1bqJxCP5tqipawr/6gZ06cTIhfvLNM0MP+PYxL7pBqxw1nhp6nb2Voa7RZoVijTCOpOZOeAqfNIXdxpNv7mdWmf8ZJHIKZE/fBOB03kDCPgAYNepUw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=DG31QAiS; arc=none smtp.client-ip=209.85.217.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-vs1-f46.google.com with SMTP id ada2fe7eead31-4766e56ccccso1852214137.0 for ; Tue, 02 Apr 2024 00:09:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712041749; x=1712646549; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=haQJ60gcyfzT0PPIcpufheaE0XM4vQtB9WG6Oc5rEk0=; b=DG31QAiSMDm4KKa5gtnuNa5UgLI8j9aONn9lASmmMdL54yphYTVtvVzvmUhgwMrxy4 tROlerAHCBNw0RPMVtLy+QtPE8OpKgvh+4j4XErf4O8q9Cvp1q29v/Fxee7oAJMlB07D kHXeKCNbwFQs1yspIXFJIhSwiVJltclKlF9nlT0yI+rdaJu/VleOVzrANh9zgOt5v9xV 8lYb0h7MqpJBNRwXf2xFU/gmxbRGGInzkikDoUJzese0k47PRL0SpzP82391f/91+GKj eAbZgNqvF7bSPsviuXenecw+1i9ykTVsGVyb8a5QNtA73Eslx8936K1OIZ3ZdfpdeYs5 4OHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712041749; x=1712646549; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=haQJ60gcyfzT0PPIcpufheaE0XM4vQtB9WG6Oc5rEk0=; b=bsxQDYBIB6uEIi2YExs4U+UDQSnYtt1kqG+tYnxKl0Rga8h79ZTXr0cM/npRYosGpd TsykVayg4MsHa2sOjI65dehmHY+5IDwvZbUrzIcu8zP8G6eVGScL1fHUFy2MEolCjkMu I18OIYYWA35+MwdP8QoVdtC/o/Sv+9DzFIUk8MT/yQHr064Ym2nYlhPX3besFIOMhfxo wB/9rO8u5Ez8xL40Ls/X+lB1aM/aEjzS68JDEfyl6d2mJOuPCKWTQVkBxJE0jmIa4PHC Qj72W8QJmfQ81mP9I6MDA+c4mUWIn3DjLg4mdYe5JQOJJNEfRfELvlY15Rrchbb2Qw2G QROg== X-Forwarded-Encrypted: i=1; AJvYcCUF+r6P1W4tslwj81FPgLZliApLpUknlHCKs+Z7fgO/HIF1uBnU8/1WITVDVyCpTmaA1jk5qopGdwtE54vYaK7SSwAhu02KPOUUrtpC X-Gm-Message-State: AOJu0YxPoNosZZePHJIGKJcv1g2McwsjmyMERXYHwLS200apHwWyAT2u 2oxTiSuNLXHJCB71TssT+Hf2x+fSAe+7M8Th12TmTvtqRFezB0//QEvZHIclRXqPqDsAKpaTy3/ 3CCFRA8/XoPqLS8l7DYq9i0SsZfWc+TTaFJRH X-Received: by 2002:a05:6102:4a11:b0:478:52cc:fc42 with SMTP id jw17-20020a0561024a1100b0047852ccfc42mr9301382vsb.10.1712041748682; Tue, 02 Apr 2024 00:09:08 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240402001500.53533-1-pcc@google.com> In-Reply-To: From: Marco Elver Date: Tue, 2 Apr 2024 09:08:29 +0200 Message-ID: Subject: Re: [PATCH] stackdepot: Rename pool_index to pool_index_plus_1 To: Alexander Potapenko Cc: Vlastimil Babka , Peter Collingbourne , Andrey Konovalov , Oscar Salvador , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , Omar Sandoval Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2 Apr 2024 at 09:04, Alexander Potapenko wrote: > > On Tue, Apr 2, 2024 at 8:54=E2=80=AFAM Vlastimil Babka w= rote: > > > > On 4/2/24 2:14 AM, Peter Collingbourne wrote: > > > Commit 3ee34eabac2a ("lib/stackdepot: fix first entry having a > > > 0-handle") changed the meaning of the pool_index field to mean "the > > > pool index plus 1". This made the code accessing this field less > > > self-documenting, as well as causing debuggers such as drgn to not > > > be able to easily remain compatible with both old and new kernels, > > > because they typically do that by testing for presence of the new > > > field. Because stackdepot is a debugging tool, we should make sure > > > that it is debugger friendly. Therefore, give the field a different > > > name to improve readability as well as enabling debugger backwards > > > compatibility. > > > > > > Signed-off-by: Peter Collingbourne > > > Link: https://linux-review.googlesource.com/id/Ib3e70c36c1d230dd0a118= dc22649b33e768b9f88 > > > > Acked-by: Vlastimil Babka > Reviewed-by: Alexander Potapenko Acked-by: Marco Elver