Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp162847rwe; Tue, 23 Aug 2022 21:13:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR6xon7O4b9s0I6qzLYCzU9F5zMFoZgvyxXyy7YD6qZcmnIKy7/hnzEyd2o2dEsEjRtRKEex X-Received: by 2002:a17:902:b413:b0:172:a628:7915 with SMTP id x19-20020a170902b41300b00172a6287915mr27567171plr.99.1661314412906; Tue, 23 Aug 2022 21:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661314412; cv=none; d=google.com; s=arc-20160816; b=QaHHaTHZq/U3g+KbOcXmO8Ci3wyGf67FQ0gRtr6S5p/3He8siLPV4tEvq30RZf8Kvy kEvxU8NCBfkQ58wZLXMeoHIE2aS6IASZqbLX+bFhYeY4b6W2ZkYfJ1P/GhT8q/gue729 jvIgXvwQRygL+e9yU2KcSopMVi1D3+9rY5qRucWVfGDTvX/uiImQMJpZelkzySlwr+tc 2V+yowhF+6ftzH4/T790KJ+Zt0bnjO/JBO1/lhq1KYHe3MO0tYzrCsNDa2FOrWNIqifr TFg6CEC8yEf6ggjdCOVoP2rG18Avu5wmhHBh9Hr4GQVdDXTNb013V8g+ayHR6uPMGpTZ u4Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PhpgZPFUtaUU9Q/iQOAzkVlGcu68oagMhy31aoIg+aA=; b=dSOaVjsNx8WImDZ8LmY2d+MBqCZGYRNuH8p/PTcCZt9W2Ya8RQeN735NvcJtS4lXwc MVO9Ifu+wAqe00iGkAtrBayVDA+tXDNIHg++Hz+xa7UGhlzgrL3fPtiUSWY831SgZTRl EehteQ+KZMS1IchxYOayjqykoYL9rD06e8NGO8P5RguxFQtRhVm1300YteAy8d0tKPfu hR1Cx9xTGLm2GsrMmwHaNsPn8w+MJFjHMIfm77vuX9LapyNHcy0guSyNvzLfoQclqQU0 NMcJVU3M4Q+saWltfFH6pJ4wif5SVFrphq1cWyg5jnQ94ZX3PV8Gds/HUeqYgDkWPmyM zX8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NNBeqrnk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e21-20020a170902f11500b00172ffa4347bsi3068136plb.68.2022.08.23.21.13.21; Tue, 23 Aug 2022 21:13:32 -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=@gmail.com header.s=20210112 header.b=NNBeqrnk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234428AbiHXDy1 (ORCPT + 99 others); Tue, 23 Aug 2022 23:54:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232676AbiHXDyX (ORCPT ); Tue, 23 Aug 2022 23:54:23 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B33C491EA for ; Tue, 23 Aug 2022 20:54:23 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id r69so13951825pgr.2 for ; Tue, 23 Aug 2022 20:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=PhpgZPFUtaUU9Q/iQOAzkVlGcu68oagMhy31aoIg+aA=; b=NNBeqrnklN2r2dr4Dqt8daNMCTW3z7H1rnjvaDn2gWmThrsvbpUOf7D0O+9/j3rzoW +WpAMznacX2JKhk+6q4ZCzCTQ1gHzTxmtzNvJq82f6TQ77BB3+ChKnYnxaen9vQo8f0Z zdrTxj30KMpWcdanZlqz5K3zVYx0/zFTDcqHLGEJKffTP8d0HwfTBG5cJJsp09No0l1R f0LTdtQlyl+c89ocXNz7vQvTtxndY56O62ex8h1grOP02reWznwas3F7WIaYTrgPjW/+ cZKTbkDcMPKHRh/RxRSqjSVmJp+RowmhgNfX24JwhWJ4SfevgF+xXuNm2WFZFC/n5PEs vMYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=PhpgZPFUtaUU9Q/iQOAzkVlGcu68oagMhy31aoIg+aA=; b=k6mBnuBx4OkT083CCcLpa7FpNL5RVOoMAZ1Z2rkEvrXx72lqJL/u6GSYDsU5pm4lv/ ptjjSsAuTeMN8TxCncFo7gEOIKcnbFBfRguVl+/EtJ8S74ZIWhAoXiz+MOLCFdfmKt+9 C/aOGYseM9rMRS3VaTup/HlijweVDvN34enRbXgj0lzXPCrCmzAvHia3guciSUZFAF/A NpbMTc7nqL8rKcCTHxOkJN7A9okwFD4EV0gRoEIrZj6aLQ548ObjWDgda+MdT30U4INo cEImm1wT1Kp3sXM2O+hR98iYwkrNwbrehl6y/n57so7C6Ak4NaKDfi5WV27HCI/UDIFj MvCQ== X-Gm-Message-State: ACgBeo0XihBVaY8qr7bS4W6a37c414jk1d42YC9OioMesXgYiAbSroz+ U4M4yuBsy95dlZxJbG+ZD/M= X-Received: by 2002:a63:2a02:0:b0:42b:2711:d534 with SMTP id q2-20020a632a02000000b0042b2711d534mr64858pgq.176.1661313262784; Tue, 23 Aug 2022 20:54:22 -0700 (PDT) Received: from hyeyoo ([114.29.91.56]) by smtp.gmail.com with ESMTPSA id 88-20020a17090a09e100b001f94d25bfabsm174610pjo.28.2022.08.23.20.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 20:54:19 -0700 (PDT) Date: Wed, 24 Aug 2022 12:54:14 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Vlastimil Babka Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Roman Gushchin , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 13/17] mm/sl[au]b: cleanup kmem_cache_alloc[_node]_trace() Message-ID: References: <20220817101826.236819-1-42.hyeyoo@gmail.com> <20220817101826.236819-14-42.hyeyoo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Aug 23, 2022 at 05:04:36PM +0200, Vlastimil Babka wrote: > On 8/17/22 12:18, Hyeonggon Yoo wrote: > > This patch does: > > I've removed this line locally and re-idented the rest. Ah, thanks. looks better. > > - 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 Thanks! -- Thanks, Hyeonggon