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 1531EC636D4 for ; Mon, 13 Feb 2023 10:35:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230335AbjBMKfk (ORCPT ); Mon, 13 Feb 2023 05:35:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230245AbjBMKfe (ORCPT ); Mon, 13 Feb 2023 05:35:34 -0500 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF57212860 for ; Mon, 13 Feb 2023 02:35:10 -0800 (PST) Received: by mail-io1-xd33.google.com with SMTP id z5so1597739iow.1 for ; Mon, 13 Feb 2023 02:35:10 -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=rg9iAwFg7IOMEVpt1NVV6rIqsGDrzeIrKjlgE6x+x4o=; b=q+UOAYFClqtFajfl3PJDBMhfQHHVUWm2EdZfa0l8S60abdy6vsCoDt/EuOnoJ+tz3W t68NgeaUoHkuPhrW9gUqPoAm7w1DHXviGFOnmfvCIMD5WXdBstyQclltReStd1qa++Ov MiIYreizFvHngeQCxqaASlKXrVAmPqgV1q8uN+KhzbhFMOcarTNm9mBWxKl5UbOyTEKQ qrIebhWB9Fc8MCJU+ANSZ5NlDJs2x5e20fizkMQFixGwE45JnEDOH+P7rv3vWN198u6s BLROXrgaR3jDcFGPMUYm9mj9cgYXQgZOp0Q62iSJlNOZOHNgX0AsXAYXpcLNsqiNzziK eZLw== 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=rg9iAwFg7IOMEVpt1NVV6rIqsGDrzeIrKjlgE6x+x4o=; b=FCg2BBem6Ca5NGlx9sm1INzirA8wbt7lb8oqzQ+i+76YsSvzokKPfTZ7yPjMgSAY24 CRFEmKFMeNirE6ZlUwX86E7hev1b7RK0q8WstyNKxk191ISBOcaux9sf/WhusIoSkVl1 Yby9Pl7Sm/tK/K0f2rGsrjkGZ677ytOMu0mYuJOQ7OcCk2wJxLt2MhpCTVs3fDYJs8R3 SePMxZSf/789lcVBIv28tr9WIC0ylLpNeZATpeJ3B2EsqUxsJiPQFXK+Z/uHAVLn9L4N mz9MJKVtupDWel5n4F39w/urUK+XPnNQzCo9UXZpRC5yKy9UCBRXCJmnl1QcgsoYyVtx VZ8Q== X-Gm-Message-State: AO0yUKUNDcUIsD/HoHk8cTmWHo/9mjnzL6t8zpv8L8T6ArvGNOSdgLnZ LTHahOQXxXulDr3LboSJhehkfdDOn3tD/74yPFP8WA== X-Google-Smtp-Source: AK7set9nUuh5E8gAYl8p0P/dG5mkhLqkGD0gKRsR5eXUx8exoJEwox3s1PbVBolGecOWwQFPfBvex+UpQNPq/axhsS8= X-Received: by 2002:a05:6602:3155:b0:732:9e46:de04 with SMTP id m21-20020a056602315500b007329e46de04mr11808742ioy.65.1676284509903; Mon, 13 Feb 2023 02:35:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Potapenko Date: Mon, 13 Feb 2023 11:34:29 +0100 Message-ID: Subject: Re: [PATCH v2 08/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 Fri, Feb 10, 2023 at 10:17 PM wrote: > > From: Andrey Konovalov > > Give more meaningful names to hash table-related constants and variables: > > 1. Rename STACK_HASH_SCALE to STACK_HASH_TABLE_SCALE to point out that it > is related to scaling the hash table. > > 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. > > 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