Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3898736rwa; Tue, 23 Aug 2022 12:07:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR5/JHisz8LfcCsa3pWM77kElhSo/JVyGQRGVy2APAak1d8GFD+R6QitdJKsiHPaozPvowfJ X-Received: by 2002:a17:90b:4c47:b0:1fa:dd14:aabd with SMTP id np7-20020a17090b4c4700b001fadd14aabdmr4621447pjb.76.1661281632645; Tue, 23 Aug 2022 12:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661281632; cv=none; d=google.com; s=arc-20160816; b=Wnji75F4Cn+slaYYsVyVG+wvNFbE5gUVnNBN4GU6wydsX87OYkaBfC1pOFBUHizvcp UcJ8ZtD7GF+F7mDBbDQQsPTZNNQOLISRrZtWmFxdPChm4IsT0oX/XG2PHBq4XmOiu41k BzvbzWcmic0BQ29uK8kMnTaC2bpyQeIu4BBgiNtipb4ykS/JqLb+YpiW3MnT0iLhDSqb AkAWFG/Z9Hgb6DXK+pFeyd3zR14BGu5Xro3vTxgBFNwM6uEPxoNAqWUniyvQU40Ew/1M JqojdFlKuAuwhI9C03UUSDrqwGWXL727mhvL4NJNTtV1gwxaGyv9q3P6C+NjJ1L0Jr7Z FA8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=1cFTANejxhxOSG7GTBTGu700vzKAak6B7yGbxdS2/DM=; b=FZ4sUsDhoNQNdRvwxmWjNFu9zvTBiF8l7zcXVwtLNie+vNYNzZEDTuVUpJdNb6b/y0 4fr0FMD3vWhL2rNE/vl0bk09AhKMRQrpN1+ap1S/xxrEzvk2UluqHBlp/uBQCysIEt2b xog6C2TnY5ldjp2Sm9oiHZ+7LNczBEDvPWSu//vHlWdydkQzsFutDFv+T9dn77+a+mfq 3mFf3g68gQOjvYhmQFHRZqmbJebVYslbZn7BDSqjEzb8dJ8fotqlTjSv1CnJg/6+BsXB MmxRQm9N5Q3+0Kfe4xQbofrc7bJ8b58mBh6edC0Vh37nqIvkg1aN0YsLWHgYPOQxCk/v 4XOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=T0QqjOFd; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=4cI74gBe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e63-20020a636942000000b0042aff6abae6si1254072pgc.277.2022.08.23.12.07.01; Tue, 23 Aug 2022 12:07:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=T0QqjOFd; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=4cI74gBe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233961AbiHWR2b (ORCPT + 99 others); Tue, 23 Aug 2022 13:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233142AbiHWR0V (ORCPT ); Tue, 23 Aug 2022 13:26:21 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A26517E019 for ; Tue, 23 Aug 2022 08:04:38 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 079B7224F7; Tue, 23 Aug 2022 15:04:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1661267077; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1cFTANejxhxOSG7GTBTGu700vzKAak6B7yGbxdS2/DM=; b=T0QqjOFd6oBtVDCJkYSzOLQRe6QHGWtLNxQvRrFFBYsHzTzAKJ811NnNnyX44eWA1Tdteg nq7/BFoRbN607DXjU52WByzmeZZ1Bo9Lu327AgLI2iKfEEBek9H45OqBEwub79AkHeXO46 MydiT33+5SZz8ug2T36dwoM+IV1KDuc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1661267077; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1cFTANejxhxOSG7GTBTGu700vzKAak6B7yGbxdS2/DM=; b=4cI74gBerp3rnvYEfNWoymhgI7UP9NAjzkmBXU9ebY5cEDQtAXjRUAVS58p3pGExh1+CSW WoZDn2xhu0qUaMAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C6FEF13A89; Tue, 23 Aug 2022 15:04:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Z5+2L4TsBGPCEgAAMHmgww (envelope-from ); Tue, 23 Aug 2022 15:04:36 +0000 Message-ID: Date: Tue, 23 Aug 2022 17:04:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [PATCH v4 13/17] mm/sl[au]b: cleanup kmem_cache_alloc[_node]_trace() Content-Language: en-US To: Hyeonggon Yoo <42.hyeyoo@gmail.com>, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Roman Gushchin Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220817101826.236819-1-42.hyeyoo@gmail.com> <20220817101826.236819-14-42.hyeyoo@gmail.com> From: Vlastimil Babka In-Reply-To: <20220817101826.236819-14-42.hyeyoo@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/17/22 12:18, Hyeonggon Yoo wrote: > This patch does: I've removed this line locally and re-idented the rest. > - Despite its name, kmem_cache_alloc[_node]_trace() is hook for > inlined kmalloc. So rename it to kmalloc[_node]_trace(). > > - Move its implementation to slab_common.c by using > __kmem_cache_alloc_node(), but keep CONFIG_TRACING=n varients to > save a function call when CONFIG_TRACING=n. > > - Use __assume_kmalloc_alignment for kmalloc[_node]_trace > instead of __assume_slab_alignement. Generally kmalloc has > larger alignment requirements. > > Suggested-by: Vlastimil Babka > Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Reviewed-by: Vlastimil Babka