From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7D66C433F5 for ; Fri, 4 Mar 2022 18:25:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241637AbiCDS0m (ORCPT ); Fri, 4 Mar 2022 13:26:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241607AbiCDS0j (ORCPT ); Fri, 4 Mar 2022 13:26:39 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1421A1C6662 for ; Fri, 4 Mar 2022 10:25:50 -0800 (PST) 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 8586721136; Fri, 4 Mar 2022 18:25:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1646418348; 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=dse1Yo6t0Vcy29L3lT+MHYqucbHXPrkGk6t6/xDwVp4=; b=Y8vufeV8mA7aSKloGeOJAQT/uREGmDg1LuWaTXvY1m1UA2NcrxhbZMCf1Xxc7YPwOmFFWO GONrlMTrMWtwqeuD2wkXcvRNSDAf6NR/pip60hffJ3fX9JH7HmDL4Jbsi28IkBKqvyVvVb +QYo5rcN0JMBsLjw7bI5OEnbQuLUrco= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1646418348; 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=dse1Yo6t0Vcy29L3lT+MHYqucbHXPrkGk6t6/xDwVp4=; b=yU8i9GvkB4jJuIKk0+o5iu1iuKVT7ULGY/9ZLGeJX5ZTo+c39lGFnOUQl29Xde4VB+ODEo fsBGb7IZXkSemADQ== 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 515F913B70; Fri, 4 Mar 2022 18:25:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8iLnEaxZImI9AgAAMHmgww (envelope-from ); Fri, 04 Mar 2022 18:25:48 +0000 Message-ID: <74269fcd-60ef-5308-3aaf-e8944e37d1b0@suse.cz> Date: Fri, 4 Mar 2022 19:25:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v2 2/5] mm/sl[au]b: unify __ksize() Content-Language: en-US To: Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-mm@kvack.org Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Marco Elver , Matthew WilCox , Roman Gushchin , linux-kernel@vger.kernel.org References: <20220304063427.372145-1-42.hyeyoo@gmail.com> <20220304063427.372145-3-42.hyeyoo@gmail.com> From: Vlastimil Babka In-Reply-To: <20220304063427.372145-3-42.hyeyoo@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/4/22 07:34, Hyeonggon Yoo wrote: > Now that SLAB passes large requests to page allocator like SLUB, > Unify __ksize(). Only SLOB need to implement own version of __ksize() > because it stores size in object header for kmalloc objects. > > Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Reviewed-by: Vlastimil Babka As discussed, we can be more specific about the !folio_test_slab() case, but that can be done on top.