Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1338809imi; Fri, 1 Jul 2022 07:47:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1trD6RGnRPctiulzeVF53Mc577Xrs3yc4LYUIWLkz642h2/0EFsEaWY9tH4DOgGbg6vW+lG X-Received: by 2002:a17:902:c2c7:b0:16a:3132:bc53 with SMTP id c7-20020a170902c2c700b0016a3132bc53mr20616926pla.90.1656686878439; Fri, 01 Jul 2022 07:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656686878; cv=none; d=google.com; s=arc-20160816; b=XeXw1OOsATgnIsULacSfvQ7eBQ7u9ZlcX0gB6p0zPgOVk94aqDj2jNzvLfyrZcX1m8 eLQTV3TXbNZK8lq5lbWKX73gwvmd5l7JxeI47DsHrzt0vwlCKvrCTQf5dzT8RzwSeBqu hIsOICePKGjf0MQJqPDheQdLaA4e8HfUweppwLUdiKIT+VFKiRbwclmMFjN74T/RAfZG u/WVH5xtlYWdGbueLr8lqGJMSjUTObSLvqsSh9KQPkNah5GNu+1IzJRJ7fiFItYXGrnJ 3cfAhiIbQmWTzp+Mw1XS04hjk/5lMFvqjiiMhJqrAaRGHGFHX4KfLZl7yLIIHms7qq4j OSXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=DeJkvTq0UbNRoNHEQKxApDspcsdPZeqRiLVALTe0Y50=; b=B4QJIToUo6jFAkIR50JyEM+1iU/oAt1zvAxUSFX7FLL5TClwEG/N0mQXBCXeZyT38x WryeGa2/QZnAkr+en44gmrNILUAnrcWJrAR/Hg4U3WbkZNf0enCkBwiF84ANtxA4Vimn XxUOJCFc3rwjOz1ndke2KVY30/BB8teeJAwpBdDG3QX6Ii4MO4wQA48y1DRf2ZhicEcd dVQ4P1VnaqeZ1c9OnXujOAsqzF99FlFkl9AOHrJHbvEmW6FD+stTm7zzri+POS/ck+Po kn4vvaG8qFu+5ge8x287UNZ1LBWFA2mTmp7Lu/V66yyXD/MSqwOHWq2it08rRRetWOSj 0x7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gentwo.de header.s=default header.b=KRVgSWmi; 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=NONE dis=NONE) header.from=gentwo.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x69-20020a638648000000b00408a7a11803si9386100pgd.720.2022.07.01.07.47.46; Fri, 01 Jul 2022 07:47:58 -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=@gentwo.de header.s=default header.b=KRVgSWmi; 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=NONE dis=NONE) header.from=gentwo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233364AbiGAOje (ORCPT + 99 others); Fri, 1 Jul 2022 10:39:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232805AbiGAOjR (ORCPT ); Fri, 1 Jul 2022 10:39:17 -0400 Received: from gentwo.de (gentwo.de [IPv6:2a02:c206:2048:5042::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2A8872EC4 for ; Fri, 1 Jul 2022 07:37:03 -0700 (PDT) Received: by gentwo.de (Postfix, from userid 1001) id 8697BB002C1; Fri, 1 Jul 2022 16:37:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gentwo.de; s=default; t=1656686220; bh=8Wxm73UmmLHbOCjpZAmjhNsfORK12itldNucpTrigH0=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=KRVgSWmi0JL9+POJHf7ZUTzfyXa5xNcZv1AcqaybbjpH5oZfLoqIv2wyOFnbeHB+P Ew15h0MaxktmLPVttReMUE1+tBEicirLMIVvWaGtKyVf9mzom1ZxHiYyKHwqfp/Z1h CN2TRH7x9D5Bjacv5KmiDx9NaPjbTgFXCdxzS69Ot1r7HPn+SG1dMz14seMBY6wpnm 9vqeWZLHRwMO1DmxSGOmiaDe3Q12taUjxYtCD/9QqEdvSArs9gRDX1QISEZb0A8NfV +R3HkojAef1HnELIlOFUE0d1DJV+Gmg6LPrMFYfCHimoQ3sENKR+TVu50K6Di2gmVo pwT+HrlsGL+UA== Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id 8558BB00128; Fri, 1 Jul 2022 16:37:00 +0200 (CEST) Date: Fri, 1 Jul 2022 16:37:00 +0200 (CEST) From: Christoph Lameter To: Feng Tang cc: Andrew Morton , Pekka Enberg , David Rientjes , Joonsoo Kim , Vlastimil Babka , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, dave.hansen@intel.com, Robin Murphy , John Garry Subject: Re: [PATCH v1] mm/slub: enable debugging memory wasting of kmalloc In-Reply-To: <20220701135954.45045-1-feng.tang@intel.com> Message-ID: References: <20220701135954.45045-1-feng.tang@intel.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Fri, 1 Jul 2022, Feng Tang wrote: > static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node, > - unsigned long addr, struct kmem_cache_cpu *c) > + unsigned long addr, struct kmem_cache_cpu *c, unsigned int orig_size) > { It would be good to avoid expanding the basic slab handling functions for kmalloc. Can we restrict the mods to the kmalloc related functions?