From patchwork Fri Mar 1 16:08:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlastimil Babka X-Patchwork-Id: 13578647 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CAE0C5478C for ; Fri, 1 Mar 2024 16:08:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C638E6B0078; Fri, 1 Mar 2024 11:08:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C137B6B007D; Fri, 1 Mar 2024 11:08:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ADB8C6B007E; Fri, 1 Mar 2024 11:08:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 9C41D6B0078 for ; Fri, 1 Mar 2024 11:08:14 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 6BD1DA04A5 for ; Fri, 1 Mar 2024 16:08:14 +0000 (UTC) X-FDA: 81848952108.02.9798EBC Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by imf11.hostedemail.com (Postfix) with ESMTP id 59AF540015 for ; Fri, 1 Mar 2024 16:08:11 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=vZvO7spc; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b="gxMtNYO/"; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=vZvO7spc; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b="gxMtNYO/"; dmarc=none; spf=pass (imf11.hostedemail.com: domain of vbabka@suse.cz designates 195.135.223.131 as permitted sender) smtp.mailfrom=vbabka@suse.cz ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709309292; a=rsa-sha256; cv=none; b=Z7nRfQTmXFaAhI0mmMTW0L//c1Z47APDv3g7OozecnRWQPVGHnugUw3AbkeGiM5WFqSl0l xK6z5u6F/n8IwhbrKvGyV4xu3tw+P4g7A+OKJA4IbnQYqGQHk3APJhXXZJBhbw/gcvyW32 9kQb/eGNhn7krx2pPpd7st8p8uYOPXQ= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=vZvO7spc; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b="gxMtNYO/"; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=vZvO7spc; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b="gxMtNYO/"; dmarc=none; spf=pass (imf11.hostedemail.com: domain of vbabka@suse.cz designates 195.135.223.131 as permitted sender) smtp.mailfrom=vbabka@suse.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709309292; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=VjviP69N1WnV7WvMSlqzGHpZ0I2yaWEsg/A6sDcOHb0=; b=aOdcq5r0VbaUb8S7MY24EvUROHPQg5vUSsYMHwrSoQu3cmi3amCV0wmzpyeOTKQ09Y37WE FmHKWcq5pFvLyaLtRvtscsI9f5g1Y2sP4nUJvpkBzg3UJZZDRUJUC/+8RBBy9Jebqb3kt+ EACBy+bZvzMGqF+IFTPpYDNjU2C6+2I= Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6DA19206DE; Fri, 1 Mar 2024 16:08:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1709309290; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VjviP69N1WnV7WvMSlqzGHpZ0I2yaWEsg/A6sDcOHb0=; b=vZvO7spcoGZ4XHO9OoC0V9nG1AV7Fp8KrMhTp3bBcAfdU3Yl81x7pXLNTrN8fLtzk1koSL lhRr6t8+HEfDSSMfjr5fOm938mo6MBPSPWLiNB+mW930rtBEt+KMP/RkyxtxH9tz3LQaxj c6GIFJto8ZuEwuDEntDEf/vsiecLbNM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1709309290; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VjviP69N1WnV7WvMSlqzGHpZ0I2yaWEsg/A6sDcOHb0=; b=gxMtNYO/IjtUmF6I02KjtQTl3Nj5mvm0MupaJQRRfxrYsj+ow8/nWMXX9XN97s9IeDxYhw iqTcvKEbS+hCNzCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1709309290; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VjviP69N1WnV7WvMSlqzGHpZ0I2yaWEsg/A6sDcOHb0=; b=vZvO7spcoGZ4XHO9OoC0V9nG1AV7Fp8KrMhTp3bBcAfdU3Yl81x7pXLNTrN8fLtzk1koSL lhRr6t8+HEfDSSMfjr5fOm938mo6MBPSPWLiNB+mW930rtBEt+KMP/RkyxtxH9tz3LQaxj c6GIFJto8ZuEwuDEntDEf/vsiecLbNM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1709309290; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VjviP69N1WnV7WvMSlqzGHpZ0I2yaWEsg/A6sDcOHb0=; b=gxMtNYO/IjtUmF6I02KjtQTl3Nj5mvm0MupaJQRRfxrYsj+ow8/nWMXX9XN97s9IeDxYhw iqTcvKEbS+hCNzCg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4B36C13AA3; Fri, 1 Mar 2024 16:08:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id MuESEmr94WUSCgAAD6G6ig (envelope-from ); Fri, 01 Mar 2024 16:08:10 +0000 From: Vlastimil Babka To: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim Cc: Andrew Morton , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Chengming Zhou , linux-mm@kvack.org, Vlastimil Babka Subject: [PATCH] mm, slab: remove memcg_from_slab_obj() Date: Fri, 1 Mar 2024 17:08:09 +0100 Message-ID: <20240301160808.10623-2-vbabka@suse.cz> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Spamd-Bar: ++++++ X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 59AF540015 X-Stat-Signature: 59efihawz9nmcnceduhqonakefxxwt77 X-HE-Tag: 1709309291-577697 X-HE-Meta: U2FsdGVkX19E04MI+DHWg7aqfIVP5i82tz7/lVa60tF27bdzyMw9x5E3fPQ9ZR6hNU2f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precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: This empty wrapped exists only for !CONFIG_MEMCG_KMEM and seems it was never used. Probably a leftover from development of a series. Signed-off-by: Vlastimil Babka Reviewed-by: Chengming Zhou Reviewed-by: Roman Gushchin Acked-by: David Rientjes --- mm/slub.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 12066e69688d..186a8ec28228 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2028,11 +2028,6 @@ void memcg_slab_alloc_error_hook(struct kmem_cache *s, int objects, obj_cgroup_uncharge(objcg, objects * obj_full_size(s)); } #else /* CONFIG_MEMCG_KMEM */ -static inline struct mem_cgroup *memcg_from_slab_obj(void *ptr) -{ - return NULL; -} - static inline void memcg_free_slab_cgroups(struct slab *slab) { }