From patchwork Mon Jan 30 20:49:34 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: 13121821 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 81D1EC636CD for ; Mon, 30 Jan 2023 20:51:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 080F56B0075; Mon, 30 Jan 2023 15:50:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D766B6B0081; Mon, 30 Jan 2023 15:50:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B063E6B0083; Mon, 30 Jan 2023 15:50:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 946386B0075 for ; Mon, 30 Jan 2023 15:50:56 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 577511C631E for ; Mon, 30 Jan 2023 20:50:56 +0000 (UTC) X-FDA: 80412659712.30.6C9C9DB Received: from out-30.mta0.migadu.com (out-30.mta0.migadu.com [91.218.175.30]) by imf01.hostedemail.com (Postfix) with ESMTP id 9F59440023 for ; Mon, 30 Jan 2023 20:50:54 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=tFaC4h3n; spf=pass (imf01.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.30 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=1675111854; 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=57d540mJERXvBQP3H394VQ1KkYAn0jgbzOXp+cklDfk=; b=Z4GcwZN+F9J7wtLLJNq1waiT8FwtPXulkolZaJOHs8htcAHQYlJX6fzosLvfxxhXBa86qX GSMGtaf/gbjlABGPtEGJ5ZKnDID/GJHGCg/es5tyEB2w/m/CDxtt9riVrYQskwMVtidVIR e8Thv2mS6IDUjL+1A3RQ6/R7hRsh+BM= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=tFaC4h3n; spf=pass (imf01.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.30 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=1675111854; a=rsa-sha256; cv=none; b=cl84Xi2RfzYu3Hr9qmKLBrCtXCZ+VC027u1EeyqwxAhS8ZRZMwpH48W7mG30UtSdpfP/WJ CXSTGcJDdmBtz4LsHqGtig0XawZYnw9QJvfxzCwQNb7u+okdtPGDNGIOoX4DDfVTkppNaj 0uGUznjM5AQGYOr3LsMFZgaJ3ZCLAY8= 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=1675111853; 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=57d540mJERXvBQP3H394VQ1KkYAn0jgbzOXp+cklDfk=; b=tFaC4h3ny4KHK6KzVpTLfphtX0wgv6hr2F1IlbR9lxqmNdFBdXy03CvsRXm9O6MKj4NsAn CTqvr8DlBi/FIBP/httW9sIeE7tRDO0I9xlzY7K90zPiYCGkwIi2vq/DRFu1UdbXz8pOf4 xyLsJWVX1RFdwNDIWgGGCX387z78BgY= 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 10/18] lib/stackdepot: rename init_stack_slab Date: Mon, 30 Jan 2023 21:49:34 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: j7udhc1c9cbhp8co6kh3t33zjyxn3gt7 X-Rspamd-Queue-Id: 9F59440023 X-HE-Tag: 1675111854-854412 X-HE-Meta: U2FsdGVkX1+0tItH9CUlA8wjCVsSF8ecQ5n+XODYRD1S6wsS4yYWTMy4MXUsOCorVslToOJGwojpZZuv3MxochwRSzxQu92LbeBVNIg2lXtlqzu99en5vSp8vwe12IyHPT/gftwJeSuq0iH8dVudiRn+O6oHVFTQdpRxawed0IOna6DXcLdJtOE9QEZOD5NxPlAEURcNi4WNRA6rU95MXWCuNdbTi3EC3OvI0Cmt45CjBIX3DCGoE1H7EBhqJiHaNwVpNK0D1iz0ht5Flyg/OURVrAUA3fFfHRjGf569YxqbrRPBy0Cj32YYhb7nF/A+w3HH4AvEWdkuGZ6D/Co879aV6o6EAu7V0lg9WJfPnVULFW3OjJq5+/Rp2tPgkohwuD7cK8PaH1QcpBgQpJlasn8qw2SGwxS3bH0g80SUVmB1TYzt9CvTakjLUaGS/mr/tV0DTBxldG8igEdLCcsmNufyz1ngmbv7KGZ5vHWGbAbhJ+KX8EkBSqZcLwa+DuOR9xlDLyBpR3dcvgSzM+fRjAoBOWqLGlYUF8nw+ZLnFusSfUBZ/HYvbKykgSnOaWHDcaI5AlN/JCETuHviVX6VWIQNTNlF8TQAmBJ6ObGwub2S91pW9cB0tcZ6q5buZecxyq7wIaLYFoX8gm9eAREPf0WkkwRj4mJxgcg0cEPdrPMZQR3B9X9TJ+R+dstsfmU0tgWoL+MpANTAKf2JI8PkPet+LNDGsp5wqP/pnQ4+VEnXh5RtatyALmm8PiTbMeUTWQmfambUClvEt3EZ/Rvh+rMU64OsiwvHa1fdBjiM1gVVvgWfCVUR9dM9devsK9A1bPJ/e19yZsQhm3RvvhekitMW1MYPUS2J+VgvGFdoepGG965zNukS0hI48Gfdk/2wvmRMLbInemttDHRHfHiHs7wWR/m9UD7G9S1dK9gh2O0WdphhqZxzYqKjUUp+syZZCpxED8zbsALtalqejb7 UovHuBC9 Zgu2HWa+Kpxuphd93PELKMzIqhCBVMdtwx/QIeevslH+2kov1U+qnqlFoXVjF5/T61QuYijB741YzrwbLjiXvqbEpsLrIdnvueVUB/apHihtkmSnZ/6KzmtnYIgmXb6pGZNFISO1Y7njAzeKwDG/7ENsh6A== 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_slab to depot_init_slab to align the name with depot_alloc_stack. No functional changes. Signed-off-by: Andrey Konovalov Reviewed-by: Alexander Potapenko --- lib/stackdepot.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/stackdepot.c b/lib/stackdepot.c index cddcf029e307..69b9316b0d4b 100644 --- a/lib/stackdepot.c +++ b/lib/stackdepot.c @@ -220,7 +220,7 @@ int stack_depot_init(void) } EXPORT_SYMBOL_GPL(stack_depot_init); -static bool init_stack_slab(void **prealloc) +static bool depot_init_slab(void **prealloc) { if (!*prealloc) return false; @@ -268,12 +268,12 @@ depot_alloc_stack(unsigned long *entries, int size, u32 hash, void **prealloc) /* * smp_store_release() here pairs with smp_load_acquire() from * |next_slab_inited| in stack_depot_save() and - * init_stack_slab(). + * depot_init_slab(). */ if (depot_index + 1 < STACK_ALLOC_MAX_SLABS) smp_store_release(&next_slab_inited, 0); } - init_stack_slab(prealloc); + depot_init_slab(prealloc); if (stack_slabs[depot_index] == NULL) return NULL; @@ -402,7 +402,7 @@ depot_stack_handle_t __stack_depot_save(unsigned long *entries, * lock. * * The smp_load_acquire() here pairs with smp_store_release() to - * |next_slab_inited| in depot_alloc_stack() and init_stack_slab(). + * |next_slab_inited| in depot_alloc_stack() and depot_init_slab(). */ if (unlikely(can_alloc && !smp_load_acquire(&next_slab_inited))) { /* @@ -438,7 +438,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_slab(&prealloc)); + WARN_ON(!depot_init_slab(&prealloc)); } raw_spin_unlock_irqrestore(&depot_lock, flags);