Article View: linux.kernel.netdev
Article #26450Re: [PATCH slab/for-next v2 12/14] hostfs: specify SLAB_MAY_ACCOUNT for inode cache
From: Hao Li
Date: Thu, 03 Dec 2026 15:02
Date: Thu, 03 Dec 2026 15:02
25 lines
10836 bytes
10836 bytes
On Wed, Nov 25, 2026 at 09:37:13PM +0000, Harry Yoo (Meta) wrote: > hostfs inodes are allocated with GFP_KERNEL_ACCOUNT. Specify > SLAB_MAY_ACCOUNT when the object may be charged to a memcg. > __GFP_ACCOUNT without SLAB_MAY_ACCOUNT will not be allowed. > > Path: lookup -> hostfs_iget() -> hostfs_alloc_inode() > -> alloc_inode_sb(sb, hostfs_inode_cache, GFP_KERNEL_ACCOUNT) > > Cc: Richard Weinberger <richard@nod.at> > Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com> > Cc: Johannes Berg <johannes@sipsolutions.net> > Cc: linux-um@lists.infradead.org > Signed-off-by: Harry Yoo (Meta) <harry@kernel.org> > --- > fs/hostfs/hostfs_kern.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Looks good to me. Reviewed-by: Hao Li <hao.li@linux.dev> -- Thanks, Hao
Technical Details
Message-ID:
<axGEU_WtFGtDDxNs@fedora>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376693-linux-kernel-netdev=dewy.ruReferences:
<20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-0-7c680f02a734@kernel.org> <20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-12-7c680f02a734@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376693-linux-kernel-netdev=dewy.ru From: hao.li@linux.dev (Hao Li) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH slab/for-next v2 12/14] hostfs: specify SLAB_MAY_ACCOUNT for inode cache Date: Thu, 3 Dec 2026 15:02:02 +0000 Organization: Usenet Network Message-ID: <axGEU_WtFGtDDxNs@fedora> References: <20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-0-7c680f02a734@kernel.org> <20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-12-7c680f02a734@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2522120"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:wsEIdDaeleUPDpjqzaeMjDfMHeA= sha256:X339+ohyrBIsKzQc0j5Z2ZFcmc2R4KeylijyPU7D1kQ= sha1:s2LMUxaOs9bTbUctzQcyAavJag4= sha256:YZpeJNFmQX3URqKDAJmhMxCApXOkxIty5ldmbdSGBr0= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id AE09711799A; Thu, 3 Dec 2026 18:04:15 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.399 X-Spam-Status: No, score=-3.399 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.dev X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HOZ5CqE46jyd; Thu, 3 Dec 2026 18:04:13 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-376693-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 6F6CD11794E; Thu, 3 Dec 2026 18:04:04 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 5373E6047AC; Thu, 3 Dec 2026 15:04:03 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796310153; b=c9b5vOpXpDEPvs6wLNYN+9CCWAYTLOlSNwgbGk9R3myz55h0wFvoyzQesFHdF8lAlUqi 9z8dhIwjAvtvgdml7I9Z0TnsSxFSApYX65XkkSsDHooJ4MV98FnQJZJ+wsDTL3YFqA14B 53+Mu/zViPrujZOxqkMI5uVTpD4rg3AhhWljNoGuQqwi0QQBsGlO7+mrGhPE9W1OL1D1z XqVUZkSNTbAldIIXWuOTbyVbxLf4ymeA8Iwedfbl2/lOmzwk+9H4aBP1oxabC2iEu0dt9 OSnhAwu4gjNbvywUzpH8wCzjj3cdWUdVJigoOTcxM46yextuLMHFuTDWCL1hB5XwSCQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796310153; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=ahkvBuSObCrPzJqDGpc9LIveICW28dufuhf4Fq01vKo=; b=FKSx89xFnyk41CwBhz3hUnxbojtD88NLch+d8EVOCcrFjlCM4do4fr4FJkYfYiFd989t 3YFyxtn7WQF6vfyQMVLTmvhG/fpMF3GFUhN974F//IIim5YRMUsuLXX9iJEVabv3zluv8 nv4MgqVhKdbtwRp3ijZf7lXyTr7tl79GHH38/5IU8qCaToIK0jth9lnrc8Ie2kMAhAQzG E39x9clEsi5wM4D22+op3gSxjEUixBESToV19AVvHkl7UfmWpIZ5/z+nRH6qX8cvLWOqm OJCD0Gtij124L6BxMoG1KYsrRO9YjRXgoCg8xHa4TToNvHp6+s5GYzzE1SojzVz/gvg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=ArLtnYqR; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1770606B3BF; Thu, 3 Dec 2026 15:02:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=ArLtnYqR X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.43 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796310153; b=OBfKA0J4wbFxOP1sqV48YgSiWJRzRLa2hOgx8YwhWOb8qrWlDEblEGxjQcxTFoWk+mL8 WoC0hZXCbECI4D7uoW5omanOV0NBn+tNDYo4eR+gtZbhZxy9Vgco8miQyvxTgUmZNpDdo id59pmVUcXRIq0qTbMYwvG/mS/FLwE5BtQrnk4dpQQPfVtZVkaMUXJibRLQzOovezcVOe l/ESgse0pit0ByawTxDElhjONPMXmyrSzPOGECaLlsodnOQqCcjgAV/IQIn4aiuVQilPU 3vmOB7xRIKKNu0cQnUuHr9AJNZf3ez94qmU2EvNWBVU42da6vIkeIw8e73oUSncczOQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796310153; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=ahkvBuSObCrPzJqDGpc9LIveICW28dufuhf4Fq01vKo=; b=o4pVTQgPCutc8KNAA8faZlYhNnPSBUfyhfSfCBR321n0QJjJviL3m1mT2PeBP3W0SdTJ Cuv4dMXXUCUHj06+spQYAvAoAvRAj7y7KCMxy9vQdLkdTLgqNtkLvPlM9B5qiAkI2MSRs cR1RJ+gkka+wMU8YuXkeNtv3+TxqzAFvPai02X0MXhmMTresqQWKgTwnyBzdVZLx23D45 x0vvIP4gCA4ikLysgneNB1m52WVYV9ix6QqCgsSP88qwt6fEkB6hrOektcizG+OmfGQEG gQqzQ7xQMFxsyGJQZYyj7mWtdZDzdw/LcSEo2u5tWM889rgSE+zxRbWzEGdZHLfniVQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=ArLtnYqR; arc=none smtp.remote-ip=95.215.58.43 X-Received: from mta1.migadu.com (out-43.mta1.migadu.com [95.215.58.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA7DC606A690 for <netdev@vger.kernel.org>; Thu, 3 Dec 2026 15:02:31 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BA7DC606A690 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=T6/oxiQU1IuLM9EW5X0Sv8qcb1Ys/0XOSNuqJK/tMT4=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796310149; v=1; x=1796914949; b=ArLtnYqRAbhM2KFjWsOubzqjQ7c6ttatY/hr+DyC3TGWMUkgNG12HxlrBoFqd49KZEzeM4g5 l0il6Qm37B4domC2K9+pLkKZlCi70FZ4qrkSV+t5/LjvWcYj1D13HCwEQxhb7RCPpqc3TE7LlP8 yuQSzulO1mB8JE8JO4AsINis= X-Envelope-To: netdev@vger.kernel.org X-Received: by smtp.migadu.com with ESMTPS id 032807d8229c6890; Thu, 03 Dec 2026 15:02:29 +0000 X-Mizu-Trace-ID: 032807d8229c6890 X-Migadu-Flow: FLOW_OUT X-Cc: Vlastimil Babka <vbabka@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Suren Baghdasaryan <surenb@google.com>, Johannes Weiner <hannes@cmpxchg.org>, Michal Hocko <mhocko@kernel.org>, Shakeel Butt <shakeel.butt@linux.dev>, Roman Gushchin <roman.gushchin@linux.dev>, Christoph Lameter <cl@gentwo.org>, David Rientjes <rientjes@google.com>, Muchun Song <muchun.song@linux.dev>, Hao Ge <hao.ge@linux.dev>, Pedro Falcato <pfalcato@suse.de>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, "Liam R. Howlett" <liam@infradead.org>, Alice Ryhl <aliceryhl@google.com>, Andrew Ballance <andrewjballance@gmail.com>, Matthew Wilcox <willy@infradead.org>, linux-fsdevel@vger.kernel.org, Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Jiayuan Chen <jiayuan.chen@linux.dev>, netdev@vger.kernel.org, Kees Cook <kees@kernel.org>, David Hildenbrand <david@kernel.org>, Lorenzo Stoakes <ljs@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Madhavan Srinivasan <maddy@linux.ibm.com>, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Robin Murphy <robin.murphy@arm.com>, "Joerg Roedel (AMD)" <joro@8bytes.org>, Amir Goldstein <amir73il@gmail.com>, Casey Schaufler <casey@schaufler-ca.com>, Paul Moore <paul@paul-moore.com>, James Morris <jmorris@namei.org>, "Serge E. Hallyn" <serge@hallyn.com>, linux-security-module@vger.kernel.org, Richard Weinberger <richard@nod.at>, Anton Ivanov <anton.ivanov@cambridgegreys.com>, Johannes Berg <johannes@sipsolutions.net>, Eric Dumazet <edumazet@kernel.org>, linux-um@lists.infradead.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-12-7c680f02a734@kernel.org>