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 F0827C636CC for ; Tue, 31 Jan 2023 12:00:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229761AbjAaMAB (ORCPT ); Tue, 31 Jan 2023 07:00:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjAaMAA (ORCPT ); Tue, 31 Jan 2023 07:00:00 -0500 Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F1F414209 for ; Tue, 31 Jan 2023 03:59:59 -0800 (PST) Received: by mail-vs1-xe32.google.com with SMTP id k6so15810083vsk.1 for ; Tue, 31 Jan 2023 03:59:59 -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=JZNhUAAi0ovc+Tuqz6CKcgSZC8r4ue4xEaiyWw4VTF8=; b=S37DVRqqxmvU5h8H83xlc+SolSrkLaJIBiIf48vCAL3FK/YUEAtpVcgjSQT7f93BAr 09Fn1rJGaNLCTk6VLRVWufqhr+Tm/nBuY57dxsZYWRi8PMIPdncit1qg7zoM8ZKi1YfK cWA/jGAbvcGrgi+2fRcaeEIPhO0QG8wFxOQH7wk2LpuSTlOcVVGSC+3qkx378nz2VcBy KPGyuc9gJI1WFdUJv2XmLyjmkSS/A0vUceuI85rw+4wr4q4vGd7LvGmgPdv/AqX5Nlyb SbZO4cFiE0vnig9p69oPeQVJz2CPg5+xrSvGRc95Jdqmpu1fFq1tpR66LIVyxy2yEv+B ayEQ== 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=JZNhUAAi0ovc+Tuqz6CKcgSZC8r4ue4xEaiyWw4VTF8=; b=4b1UvqoFjxYSlldabOCgf+RfjaFmsnfS9Ee3ZowVeBkUtdRPeacc5wilAI/M4ZED4r CnLRYrIb2YdU76JKgs/gQbFQAdxuL6WnXigpnsgPEZypJKIcBNQZljbHvToxfBGzI0Lb ZJLaw4WWfHKs4HXxhaLnGCpBWF/+BtIFQBukhi3kYwql+pqKBAntG3YaR3HAMpuKpaCh +riVC41Vh16QtaZn1VJZgek+5Er88nyZ8RdHa2ukUfcvCzFjtD0knFSSOg0POza4OkjJ Bm3aUkiS10HmvuDMLlz3dCDOc85429cl/5RWcaT8ugYs4chCsJ4weShz5xhQQtfMNDgv Axyw== X-Gm-Message-State: AO0yUKVP2NgyN05a43E0dpMCbYEIR+i0maAAoXE1tVbEappR5Rg8VtlF EdNABnMTpTCTgsSvyrfzHbuvEX3d7kDzAMKjm4Vt/Q== X-Google-Smtp-Source: AK7set8Gxy1piqmMjmjyMt5CL/vw+OsQchz0XTs4ycC3u80G1j4Kd91DD6/4xmq3qtnmdxIeAAtdDnSGuS5cZO0ovC0= X-Received: by 2002:a05:6102:449:b0:3fc:3a9e:3203 with SMTP id e9-20020a056102044900b003fc3a9e3203mr662988vsq.84.1675166398494; Tue, 31 Jan 2023 03:59:58 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Potapenko Date: Tue, 31 Jan 2023 12:59:22 +0100 Message-ID: Subject: Re: [PATCH 11/18] lib/stackdepot: rename slab 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 better names to slab-related global variables: change "depot_" > prefix to "slab_" to point out that these variables are related to > stack depot slabs. I started asking myself if the word "slab" is applicable here at all. The concept of preallocating big chunks of memory to amortize the costs belongs to the original slab allocator, but "slab" has a special meaning in Linux, and we might be confusing people by using it in a different sense. What do you think?