Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1908956lqz; Tue, 2 Apr 2024 01:00:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/6wNqSh9U05KkwXf7PLrTzrru0CqrWVaLJKicktqhKVVLfLWbTRUxRgTSvTZxe/k+z7QLJzvzV7iNyKFvQFwzK7/lak73Q3aSXvOFAQ== X-Google-Smtp-Source: AGHT+IGACoVeZtPJRl6PV4Yf0tJTRgaFiEeiKdtfuSpDStv9C/JXjqgf53q+C6p15pwWNuZGM8we X-Received: by 2002:a17:902:7847:b0:1e0:1bff:59e2 with SMTP id e7-20020a170902784700b001e01bff59e2mr11599796pln.39.1712044807169; Tue, 02 Apr 2024 01:00:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712044807; cv=pass; d=google.com; s=arc-20160816; b=vmjVOYBGu1j9vpUH+9aw4bh6DgwEXjAvNnk5DtZhJDCZh/5oj9JGNI3k2DgbDs+8ov y+WfgIYzXYz4nm+OU5mEQ/C42YzYepPKnA2Q2ZDnfQygQzzvo23j8TZ5Tu6hVAazPPsw 3kRBhnahbycLpxGEZWFCjoCLTAewmBmSuWcZOgmNH1xbOZ/tnldI7Eht9FLQxZ9TaVnk hxBqtj1HGS+9r9/Kk6Ltk1LME3UQkA0B42Ck1Ttin7yhb0lbYIPqttwktnC5TE9h02CE dGZdWXhmyoqiO5iBY2jYZDKtK/oQn8elgTq11zv4q9s1QVvYOuXc3upC5hEz37ov4mm7 wmPA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=RP9RLjMVbq6a75Dz/QpdRnh/IGmkM/3rb1FTFURpAMo=; fh=E5cycATcadJPErsT8H3H/9JXVyTlcx5zRMw26V85B/Q=; b=E1nNttoh1dsY6ZpBIsdxnL+vCUraSH7C7+TEei7tdMTUDGmsWLkuzLJMJIrt372M7/ uzZ+Rkq2qWIPGrk/dOYHyfh7b5ZKxbHrpyEFF7OEWZ7/q/HP/46pnxhSSNocEBd+wej3 oB/eyneZaDhLgeLMQ8B3AaPcKEoE2/ae2IWfkV0DNlG6o0jzW+mZMokIcyU8isSLE48/ zPD1Wx8rJlFk2yKZKK8Fa9zUTXmgd4hs/rBZka1khc34E0huIrGGNDWpd6cz8hB3w7iU nyd3feI5KdUhxg+e/cgVro4bil81pR296ppQG4hLOc1iK7eQ6+BkyUd3FLGQ4ubKk4m2 Z/eQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="xbxCM2x/"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-127523-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127523-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l9-20020a170903120900b001dcd642ab02si11043570plh.75.2024.04.02.01.00.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 01:00:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127523-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=@suse.de header.s=susede2_rsa header.b="xbxCM2x/"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-127523-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127523-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 D21D4283186 for ; Tue, 2 Apr 2024 08:00:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21BF73D547; Tue, 2 Apr 2024 08:00:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="xbxCM2x/"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="X3Q3/owZ" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 A79A23D3A5 for ; Tue, 2 Apr 2024 07:59:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712044801; cv=none; b=r+cFWsAURoJm+0xsU7yBOsGx2Z5I63wZoKKck7EfkFR4sU16jKm5+YnGPCNPkXyMAxnl5XAlBek4Xsw9uaCKKMOloVxJJEnktBM6jhstfAo2lrsK5NBmtw5/PJItZaPevXKRia13VIL04asF7JI/K8sirNmn1aDMGcr6T+bn+0c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712044801; c=relaxed/simple; bh=LtT0e9h0lXVwDIP6I5Un017mzXnY6egsLRSS147sOPg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GAovdLQEm6j5vNMZCUnX3hDJFIwBzuSwxRU5azXJW7olFp55HELCQGnbXEOi+Da/MIYBS+vMs9U3eYsYkyrlphoS/hfpmbG/+Gt+mACvLDFyguON+TTEgwwVS3UNtoloyx5FQcjS6aLsX6M4Gz7X6RBxM7XqfRbb//KuvR5C9jA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=xbxCM2x/; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=X3Q3/owZ; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A72DC34425; Tue, 2 Apr 2024 07:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1712044797; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RP9RLjMVbq6a75Dz/QpdRnh/IGmkM/3rb1FTFURpAMo=; b=xbxCM2x/bJD4HdWoiZb1cKC8CAA9RQNPT8nVdiN8EfX+4JSQNpjWyVnlB50FLRwQPraGOq LH7i7LdfyNmTnCSxxXnk47cnjsAHmUEBTTpw4/VNeP1NlzJNs+1P5ujPp+dvdxwg8Zy3Gg 6q8y3Tkx3pivB8i5U9/CQfMJkXV4M7A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1712044797; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RP9RLjMVbq6a75Dz/QpdRnh/IGmkM/3rb1FTFURpAMo=; b=X3Q3/owZH0O5AM0hWchtsbxVchJJno1eRfpFd6zLInlSx987+9m8H7gfyqM1R1Wqwy9ARg igIWi+3SP3yL5eDQ== Authentication-Results: smtp-out1.suse.de; dkim=none Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 1609613A90; Tue, 2 Apr 2024 07:59:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap2.dmz-prg2.suse.org with ESMTPSA id mQGoAv26C2YiWwAAn2gu4w (envelope-from ); Tue, 02 Apr 2024 07:59:57 +0000 Date: Tue, 2 Apr 2024 10:01:22 +0200 From: Oscar Salvador To: Peter Collingbourne Cc: Andrey Konovalov , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , Vlastimil Babka , Marco Elver , Alexander Potapenko , Omar Sandoval Subject: Re: [PATCH] stackdepot: Rename pool_index to pool_index_plus_1 Message-ID: References: <20240402001500.53533-1-pcc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240402001500.53533-1-pcc@google.com> X-Rspamd-Queue-Id: A72DC34425 X-Spamd-Result: default: False [-3.30 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_SHORT(-0.19)[-0.968]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; RCPT_COUNT_SEVEN(0.00)[10]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,linux-foundation.org,vger.kernel.org,kvack.org,suse.com,suse.cz,google.com,fb.com]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:98:from]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FUZZY_BLOCKED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap2.dmz-prg2.suse.org:rdns,imap2.dmz-prg2.suse.org:helo,suse.de:email] X-Rspamd-Action: no action X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spam-Score: -3.30 X-Spam-Level: X-Spam-Flag: NO On Mon, Apr 01, 2024 at 05:14:58PM -0700, 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/Ib3e70c36c1d230dd0a118dc22649b33e768b9f88 Acked-by: Oscar Salvador -- Oscar Salvador SUSE Labs