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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C742BC38142 for ; Tue, 31 Jan 2023 11:34:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230033AbjAaLeQ (ORCPT ); Tue, 31 Jan 2023 06:34:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231767AbjAaLeJ (ORCPT ); Tue, 31 Jan 2023 06:34:09 -0500 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0B2BCDE9 for ; Tue, 31 Jan 2023 03:34:08 -0800 (PST) Received: by mail-vs1-xe35.google.com with SMTP id i188so15683823vsi.8 for ; Tue, 31 Jan 2023 03:34:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=i8eUarQKx4zlWnr8p6102+JRBW/gc9YxRunt0DbrPaA=; b=Hu3jY71lNtAtQxbsDMTMKp2xklIgIO3mPHIJ79EvZmZNNyhd1TYzer4rk+msSCIaZi 6BpkIKPeadpYBXTEv3kKK7PtmeQJEngDwb9+OwDKiTrseJp3XtJMuiPWQl70kLvu0WJG y6Fs3pCfGfTPPpJ4VgOTzowNbiD+qYeJ0mD29iB+t8Cvdx3bnW5lBq5bDQridA6KALXA HhIsQWPGYUwIxY47pyV6JcDoSFdSIG3M2+cglWIGXCLY5s2yTTkXH5A5NwcXG95DNtPr /xEvmkqqTB8ICwRhrlWcpW6lwqL6G4NmHvOx1sHXbObgz50sSPsLpMG4J51F/sPAl/Vf LilQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=i8eUarQKx4zlWnr8p6102+JRBW/gc9YxRunt0DbrPaA=; b=C4kZflCiGAcOWZ6VBQfJ1r+CWgyS6n5lorpjJnOL2ArbF6weL2JSoBN6WywnQl3anT ijoecTVoQeI1MG57YfKHrhpK6K/LBX6U29VB2nRthLZqoEOZvnenjxDYMEs9/tYi14I3 4BRUem0aRPTfGrBPblNtmHpAbXdkpoegTrimFbnCsk04qJqGgKFwlmXZcrVjk3eHrl+X o1C1o1k3zmMrOzMi6thlLMUMGmCJneclkYih75lVOt2phk3bR3//xCieljlIJGF8FLsF qEY6bGQ1TGsqKW09f12kSN6qvKIZFq1hSH1V/o0NkSQefzOcXq4iPbM9N2bLUAfDvudp QMJQ== X-Gm-Message-State: AFqh2krmHx+iRsXf6kEoC3JCWGF/ZsJwmFrt3EjGeWmacNZ3fVuQPKVa Xh66tr9qT5SsD+6nnW8tn9SUyH2QWUQKNLZidpjVjw== X-Google-Smtp-Source: AMrXdXs7gAgf42FKDCJFRrDo6We9zx/CBIN3LvglGtvy3VnkIDYcWFMb/mBbqvaR0o2rHVBOl7Lgw1BwcMrz543P2iw= X-Received: by 2002:a67:ec91:0:b0:3d0:a896:51da with SMTP id h17-20020a67ec91000000b003d0a89651damr7123043vsp.44.1675164847883; Tue, 31 Jan 2023 03:34:07 -0800 (PST) MIME-Version: 1.0 References: <5456286e2c9f3cd5abf25ad2e7e60dc997c71f66.1675111415.git.andreyknvl@google.com> In-Reply-To: <5456286e2c9f3cd5abf25ad2e7e60dc997c71f66.1675111415.git.andreyknvl@google.com> From: Alexander Potapenko Date: Tue, 31 Jan 2023 12:33:31 +0100 Message-ID: Subject: Re: [PATCH 09/18] lib/stackdepot: rename hash table constants and variables To: andrey.konovalov@linux.dev Cc: Marco Elver , Andrey Konovalov , Vlastimil Babka , kasan-dev@googlegroups.com, Evgenii Stepanov , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 30, 2023 at 9:50 PM wrote: > > From: Andrey Konovalov > > Give more meaningful names to hash table-related constants and variables: > > 1. Rename STACK_HASH_SCALE to STACK_TABLE_SCALE to point out that it is > related to scaling the hash table. It's only used twice, and in short lines, maybe make it STACK_HASH_TABLE_SCALE to point that out? :) > 2. Rename STACK_HASH_ORDER_MIN/MAX to STACK_BUCKET_NUMBER_ORDER_MIN/MAX > to point out that it is related to the number of hash table buckets. How about DEPOT_BUCKET_... or STACKDEPOT_BUCKET_...? (just bikeshedding, I don't have any strong preference). > 3. Rename stack_hash_order to stack_bucket_number_order for the same > reason as #2. > > No functional changes. > > Signed-off-by: Andrey Konovalov Reviewed-by: Alexander Potapenko