From patchwork Fri Feb 10 21:15:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: andrey.konovalov@linux.dev X-Patchwork-Id: 13136460 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93551C636D7 for ; Fri, 10 Feb 2023 21:17:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 37B7B6B0192; Fri, 10 Feb 2023 16:17:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2B6606B0195; Fri, 10 Feb 2023 16:17:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1565B6B0197; Fri, 10 Feb 2023 16:17:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id E47E16B0192 for ; Fri, 10 Feb 2023 16:17:20 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 8D9811C3987 for ; Fri, 10 Feb 2023 21:17:20 +0000 (UTC) X-FDA: 80452643040.30.949A3FC Received: from out-65.mta1.migadu.com (out-65.mta1.migadu.com [95.215.58.65]) by imf11.hostedemail.com (Postfix) with ESMTP id DA3B44000F for ; Fri, 10 Feb 2023 21:17:17 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=KLl8qvzo; spf=pass (imf11.hostedemail.com: domain of andrey.konovalov@linux.dev designates 95.215.58.65 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676063838; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=vdN0qpq7PVidlsBHChLWKkpFVAJ9uzHha5rImS4k+3M=; b=lQgEcriLyqG4M1AknlK2EtVpazfBmKByPbmAqGOZD/NNWLipqfXfEbqc7+YmTBK71CVd2I mPHL4lNcclKx1hn82G136i25AMoVfyJqJTn8bNoOV9iK/PU1mqrAWyY1dOm3lGiOFj/sNR m84TOLnQ1B9pED6+0MZl8aJibRX7p9U= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=KLl8qvzo; spf=pass (imf11.hostedemail.com: domain of andrey.konovalov@linux.dev designates 95.215.58.65 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676063838; a=rsa-sha256; cv=none; b=lrqKECzTuQFovDNTYmBCLCatGQvxRshM1+5Z5U+oVI8pX8qUHYxlbiJGyWTPBM6fUmbxCf MHYO1sRskuLMF8pvqI3XwoPS1Zn21de52CypL4Sx8Gt2Ec/0b9zb0V1cCFofrk/bOXi+97 UT8uKG/WL63Jj8Wxh9VqNOMAvF5lJHQ= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1676063836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vdN0qpq7PVidlsBHChLWKkpFVAJ9uzHha5rImS4k+3M=; b=KLl8qvzoKbycCxdT4nCBIk0Y5JSFEiRTzE8rQ7hPWQgJyI6aNYe9J4JiYp9VP8KyQscvcE TnBdBtXz72gahKjUZfNLixZQ+HBoFx1lollCt6vbrb/4uXRxWFRj+bxxz26jLclDITfqn0 lOVvAXmBPC4TV8M5PBP+IoohhLxIuWs= From: andrey.konovalov@linux.dev To: Marco Elver , Alexander Potapenko Cc: Andrey Konovalov , Vlastimil Babka , kasan-dev@googlegroups.com, Evgenii Stepanov , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH v2 11/18] lib/stackdepot: rename init_stack_pool Date: Fri, 10 Feb 2023 22:15:59 +0100 Message-Id: <23106a3e291d8df0aba33c0e2fe86dc596286479.1676063693.git.andreyknvl@google.com> In-Reply-To: References: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: DA3B44000F X-Stat-Signature: cpncnzwswhehdzqyradyaqho8j4dbus7 X-Rspam-User: X-HE-Tag: 1676063837-761243 X-HE-Meta: U2FsdGVkX18ONv4U09VQO75erdmZp8b8LpRhB1S4EQv+yMZcWYBYuxMXJYPBh7W37rqaarhQfIVWGmbs25+dhq7Pi2LbPanFk09IoqQRYunZWH+YpLzTiCU/65b40Ih2abPRCm8ZO1OHHKP0GkbElr5MigWzaqc74CpqsTRLq4wFcPndXgMbwR4WjsBto/2Yg/VvOXF1h1jv2re60G4g1x/sO2CIE7AflsL0f4JD2YCdUM+ohFrxFZemr3VQ76UDuQAhoj7TMxRMXKay0oEuEZLwoTWRa1WZPLSAIgSlYw2vzSIOAUlfebfIVQMoVHCg5OiUiTG0G6a0XvDBndE33ypOEnDwxfHCPTcWkSVGlJo0xwL2F7GEPJmXMnE/C4A3V15GmuaI9FxesarDwgs93VkBbrwt+8FZ+bikrWfYVdSQmHOJsmhzudymncVdUOfs76o2f3Uc7g3TREIJRq7leT7TXOkxI+inVQw2jcpS0mAppK6W+ZY2dGR1+XuB/d1ohzku9dhhEkvJMn6UdfAEG5LDECbWGBpTtG/+yUyj5Zdiizi+dHEfOEXLGAow0OntykobtB98bpxes1zoppSBMykj300W7BZpI5uvC19+mWdXQBqskgffBuUZcFZoNl7DazoyN2xxKPa7u+wzC8eCum4/xmQOX8aQLna7On+5oxM2O24LwAGdNBTWgMMwP3EHjCMtP+asN2XXWHgUIlsWIbFiYf2vp78ROc/SZYUiGKbWoSBydGQQwRjUXjEKqN6NG1qrVL4K080DWHipxtnxjgX/ux+ppKYp23dtFmeuxkK64NkRg8aaFsv3ua7TIt3yUi5IwqsvrXOwgj3/2OVy8jVSH6xZPgttkaU8PUPQWcTUfuyEu6wzAr3dn5ZeXvTqkcaGf8PC0Lm6t7SaHZTZ/OJbJ8fZ3XBPVpLXatM/INvGDFN5/xOcM/7z0lI66Os+tG4okWe5X0F7mJHq09/ sj5kTiea YS7OdyniagcfrAHVUWcleTZd35aNOYzOMtQ0kxeuctnnvT5qbvJJhiPSgZTNSYytlwV1sqj2ny6GUWbcO49d6lc90AVRWlEE1RBhVGHLbBRyKkM0P3nacGU9FVxG7NfsykvbDExyJdGYW8Hj5J+/psSKLvQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Andrey Konovalov Rename init_stack_pool to depot_init_pool to align the name with depot_alloc_stack. No functional changes. Reviewed-by: Alexander Potapenko Signed-off-by: Andrey Konovalov --- lib/stackdepot.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/stackdepot.c b/lib/stackdepot.c index 97bba462ee13..7f5f08bb6c3a 100644 --- a/lib/stackdepot.c +++ b/lib/stackdepot.c @@ -218,7 +218,7 @@ int stack_depot_init(void) } EXPORT_SYMBOL_GPL(stack_depot_init); -static bool init_stack_pool(void **prealloc) +static bool depot_init_pool(void **prealloc) { if (!*prealloc) return false; @@ -265,12 +265,12 @@ depot_alloc_stack(unsigned long *entries, int size, u32 hash, void **prealloc) /* * smp_store_release() here pairs with smp_load_acquire() from * |next_pool_inited| in stack_depot_save() and - * init_stack_pool(). + * depot_init_pool(). */ if (pool_index + 1 < DEPOT_MAX_POOLS) smp_store_release(&next_pool_inited, 0); } - init_stack_pool(prealloc); + depot_init_pool(prealloc); if (stack_pools[pool_index] == NULL) return NULL; @@ -399,7 +399,7 @@ depot_stack_handle_t __stack_depot_save(unsigned long *entries, * lock. * * The smp_load_acquire() here pairs with smp_store_release() to - * |next_pool_inited| in depot_alloc_stack() and init_stack_pool(). + * |next_pool_inited| in depot_alloc_stack() and depot_init_pool(). */ if (unlikely(can_alloc && !smp_load_acquire(&next_pool_inited))) { /* @@ -435,7 +435,7 @@ depot_stack_handle_t __stack_depot_save(unsigned long *entries, * We didn't need to store this stack trace, but let's keep * the preallocated memory for the future. */ - WARN_ON(!init_stack_pool(&prealloc)); + WARN_ON(!depot_init_pool(&prealloc)); } raw_spin_unlock_irqrestore(&pool_lock, flags);