Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3921216ioa; Tue, 26 Apr 2022 12:26:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxo3VJEHcNu2IDkEpftYkOxurNeP4NH+aDxNtvEmS5y2LiTD38gjF4TYRg9kZ4gdUej8RDa X-Received: by 2002:a05:6402:5189:b0:423:f342:e0ce with SMTP id q9-20020a056402518900b00423f342e0cemr26470301edd.120.1651001164870; Tue, 26 Apr 2022 12:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651001164; cv=none; d=google.com; s=arc-20160816; b=TelBopecyqSEvOYPBXtbepf9lTdukNb88RlfBYlDko9U4bM2Fb3CHIfrCIo/1HIqF9 OC6meVCgLKzSw4LOYuKekttCXiRolAwaQiv8npi1BSI+d76uMeIqnnkx+yHC3cl2oKnQ EccS/U4nAN/UBXySnoP2WIu095P5EzeK9r3PMaUwEY1JRAVbwhZEBuDWow+Cg81AvP0o vIYlH6M6GVDXhWTM7nV+A8e7Rl7WtBOvr+IygFuTw3HLoun1GjgQcQnS/eydR0J7ov/V 8OVXCN1FCScQrLZUaCOpg+Eofyud/CdIH/pW9fOYumSa6V4K4Rak0aGdNUEHzypIeKYs D52g== 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=Fepc2oLMPvkExB4fn/i4OKfIvMt6S6PP9V70SD2F7kU=; b=GEU6DmQXorN8rXo1lmXp5fZKEro61RNbv3S7Ykq0vvp5PbepS05vt5rMRoxRDvM5Gy qyaxbY3Tml9+BXNSFlMfpMKLQdP4C2AXiwGgu4O5I+5XEGHlZaT13uw7Yy1dTrwXGaZm y0T6OerDglVzUV0/rMDoFrbR/JdkxTWHx98WPALSwitKwv9yVRB9i6Od6ChgT7k4LpLn cW+xWV3MooZvmIziSIA0Twx229v/4/SRFErDMaH0nv7LaP6IaO4py9fJ0PUdeHWVmMzb NAmtlojDCr5VS100MiXAEuAh5eCBHEsZJpUA0q/JwortBvtMu2dkdGCv9yVcgrN3BfLh +RzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=wS+JSk5j; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=M5mxhJCI; 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 k1-20020a170906a38100b006df76385d9bsi16612080ejz.571.2022.04.26.12.25.41; Tue, 26 Apr 2022 12:26:04 -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=wS+JSk5j; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=M5mxhJCI; 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 S1352855AbiDZQRE (ORCPT + 99 others); Tue, 26 Apr 2022 12:17:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352708AbiDZQRB (ORCPT ); Tue, 26 Apr 2022 12:17:01 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 644A09D4F1 for ; Tue, 26 Apr 2022 09:13:54 -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-out2.suse.de (Postfix) with ESMTPS id E8AB41F380; Tue, 26 Apr 2022 16:13:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1650989632; 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=Fepc2oLMPvkExB4fn/i4OKfIvMt6S6PP9V70SD2F7kU=; b=wS+JSk5j+c0FTM36Co61iaBnZ8JHEsNpqXK7cqHDhBcbQfxbF7hg3KoObU3e4Kw/pfi5ku 3RK1CrBqiPGMKL7Ccv4q1ia0QrO1GKfT+T5ljYxvM6QqdaWhz4XyJTZgHAciI4XUvRUZVD xaVzQOXrIOG/rSs3ZAMiuLUflmNX/Bs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1650989632; 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=Fepc2oLMPvkExB4fn/i4OKfIvMt6S6PP9V70SD2F7kU=; b=M5mxhJCILPqO9yQAXPCFVhsXea/nT0ctWg8rt5zDpf1I0GP0hYMT00TbUR7T6u/YGPqZtS w33Oc+1i2mGQVrBA== 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 B841B13223; Tue, 26 Apr 2022 16:13:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id IKbVK0AaaGK0egAAMHmgww (envelope-from ); Tue, 26 Apr 2022 16:13:52 +0000 Message-ID: Date: Tue, 26 Apr 2022 18:13:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v2 07/23] mm/slub: move kmalloc_large_node() to slab_common.c Content-Language: en-US To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: Marco Elver , Matthew WilCox , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Roman Gushchin , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220414085727.643099-1-42.hyeyoo@gmail.com> <20220414085727.643099-8-42.hyeyoo@gmail.com> From: Vlastimil Babka In-Reply-To: <20220414085727.643099-8-42.hyeyoo@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.3 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 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 4/14/22 10:57, Hyeonggon Yoo wrote: > In later patch SLAB will also pass requests larger than order-1 page > to page allocator. Move kmalloc_large_node() to slab_common.c. > > Fold kmalloc_large_node_hook() into kmalloc_large_node() as there is > no other caller. > > Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Reviewed-by: Vlastimil Babka > --- > include/linux/slab.h | 3 +++ > mm/slab_common.c | 22 ++++++++++++++++++++++ > mm/slub.c | 25 ------------------------- > 3 files changed, 25 insertions(+), 25 deletions(-) > > diff --git a/include/linux/slab.h b/include/linux/slab.h > index 6f6e22959b39..97336acbebbf 100644 > --- a/include/linux/slab.h > +++ b/include/linux/slab.h > @@ -486,6 +486,9 @@ static __always_inline void *kmem_cache_alloc_node_trace(struct kmem_cache *s, g > > extern void *kmalloc_large(size_t size, gfp_t flags) __assume_page_alignment > __alloc_size(1); > + > +extern void *kmalloc_large_node(size_t size, gfp_t flags, int node) > + __assume_page_alignment __alloc_size(1); The usual :)