Article View: linux.kernel.netdev
Article #23099Re: [PATCH slab/for-next v2 04/14] fs/buffer: specify SLAB_MAY_ACCOUNT for buffer_head cache
From: Harry Yoo
Date: Thu, 26 Nov 2026 14:23
Date: Thu, 26 Nov 2026 14:23
26 lines
10328 bytes
10328 bytes
On Thu, Nov 26, 2026 at 10:05:35AM +0100, Jan Kara wrote: > On Wed 25-11-26 21:37:05, Harry Yoo (Meta) wrote: > > Buffer heads are allocated with __GFP_ACCOUNT to charge them to the > > memcg of the folio they are attached to. Specify SLAB_MAY_ACCOUNT when > > the object may be charged to a memcg. __GFP_ACCOUNT without > > SLAB_MAY_ACCOUNT will not be allowed. > > > > Path: ext4_getblk() -> folio_alloc_buffers(GFP_NOFS | __GFP_ACCOUNT) > > -> alloc_buffer_head() -> kmem_cache_zalloc(bh_cachep) > > > > Cc: Alexander Viro <viro@zeniv.linux.org.uk> > > Cc: Christian Brauner <brauner@kernel.org> > > Cc: Jan Kara <jack@suse.cz> > > Cc: linux-fsdevel@vger.kernel.org > > Signed-off-by: Harry Yoo (Meta) <harry@kernel.org> > > Looks good. Feel free to add: Thank you for reviewing them, Jan! > Acked-by: Jan Kara <jack@suse.cz> -- Cheers, Harry / Hyeonggon
Technical Details
Message-ID:
<awhA1sW94lviTsgT@thinkstation>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372142-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-4-7c680f02a734@kernel.org> <gmnosp2u47xewnszzrx4asmldxsyjtejyrbrng2ckrcfedymeu@evhwupv3iwhf>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372142-linux-kernel-netdev=dewy.ru From: harry@kernel.org (Harry Yoo) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH slab/for-next v2 04/14] fs/buffer: specify SLAB_MAY_ACCOUNT for buffer_head cache Date: Thu, 26 Nov 2026 14:23:37 +0000 Organization: Usenet Network Message-ID: <awhA1sW94lviTsgT@thinkstation> References: <20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-0-7c680f02a734@kernel.org> <20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-4-7c680f02a734@kernel.org> <gmnosp2u47xewnszzrx4asmldxsyjtejyrbrng2ckrcfedymeu@evhwupv3iwhf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="483607"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:n2xTZKPliunG2y/BbUHO37RVnv0= sha256:2qnFCNljAJWRfdxjhlFchzMPv1mT2/frzHU6eb5zKgY= sha1:gxo+TA8PdmpfC0MziFS/AYI/vc0= sha256:T2u5UzlhbJaBHco1Tg5iSPqMxnQOCMi7nf73R8gAEK0= 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 82FCF125EE1; Thu, 26 Nov 2026 17:24:01 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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 (2048-bit key) header.d=kernel.org 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 PZcqOQxEyNjS; Thu, 26 Nov 2026 17:23:54 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-372142-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 17572125EDC; Thu, 26 Nov 2026 17:23:45 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 4EEC336659; Thu, 26 Nov 2026 14:23:44 +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=1795703021; b=fpTAaNRK/rMntGJ/MORhG88bnGcAw5KJRPwEiKad3FWB1CbQh/h9/wVSlJaW3s56i8Rh eucj3jWVi2FoqhqsK3mk5uJTznRQdBz0AZ21wA8gdSQFIeVDhAk0i0/xflwUpN5bKriUO HOyG11BiSh5naR9zWf81QfBueFAM+sG6g+dZvGKYjHLR2UY/sHkcxpLFbIIlJecDws3zk KbePgNiLA2MPERcp+5aR5ebjwfTTAauSZ1MbL/CCIzVfWDrldrfyL+2COBFVOnK9e09Pa +Pl9rhoe2szxtMFerDmU7rVBjib28Jwuypp3lxzWuFHuKjEcLf4wMiwK/hsj6qBo7XQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795703021; h=X-Original-To:Received:Received:DKIM-Signature: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=TM3nSQU4U49T6GuNdT3oigc7kZQ4pNCPYHhbPmQrcTg=; b=waqCI82VGyxRM2E9IcunKtjgg13Gs9QSbNdgG0ug4sEX/mmYxNk05uBmnU/B8t9lu8Aq m0S8BQDzCqts+HiuwvrjCh4fWhce7P9oO6TR4jM+tEB6BkP/B2EH9gtRdSAU9KbaOuoIN p2fV4Rwd+bYlHzm4FgfbfY/tWuVxKCEWsJk/lwcj4EXi1KK4ajm3TjgTVLTklfboJTqkG oi5Xoc+gs1A93zw9UOrfaHncoGvXTIiAwjBu4o4kYK82W/0cyjF/KICQnzZmFEWmMLPPi 59t7Ni2sjHe3hF6Cmmav8NKigBz99U2LolZzLK7BQGriUU81GKH+ONPYp+/d4CMtBzg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cLtgzE2m; 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 01E25606A333; Thu, 26 Nov 2026 14:23:41 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cLtgzE2m X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795703020; b=b9iAA7HKUGof7rkBR+1wjrTiAL5Dyf7nA14fql+m0WGfWZJJk+KEyKJnaFcQQmTU2XvX VNqowhsjyGPfwuhc7zwxj+GrcfsLqUCura637aVfm3xBpfdbS8yjBgytEU966xmZjbHFk GETQ/eDMBtIQcuQ6jnzYcnP1OiJBd6q7aW0+UCU7UyD/ZmyPK7zNg4RQkjrGVvDcBe7ZY GrRm7BF00bswSaHRklOJJnwdZcXAXWJQilB5D6LCfle6dVbNFdFtU1uQHTqBfVd/OjKFh hP/UJ54VY8/COEzgpMEEHpFpOH1XuqdsPDX3ynUMViclcFbK79rHZXTFrYrYJc+c9HA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795703020; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=TM3nSQU4U49T6GuNdT3oigc7kZQ4pNCPYHhbPmQrcTg=; b=DvyUu9OvwW4+KqMUCQPvIf5+quKQ/cSpVEsuPyefEp92mGudhRF/6xpl0WQfBJ+0X0bW NWvnSOlpPAd23F2X6O4SHhjUXFcQvZi0XuiJvX5pYocVitRI8GEebN11C08kffnAfEHdh P1LExnHKcr6tLjQOH5YuYx/XbZS2LJPOBYtx4W+qfphutBH+3w/2a/6bMEycrLgoX5o4e kn0lqZbpWE8DYtFIIAOo8I/iUfsf2HlF+QqDlReMUUXNUz0AMsUh2WbXPhtPXXmdtHsID luumCDcETE5IK8e6QET+lg++BFKGOKURh2ZvXFprgTbjCqtmEhnqoc+JIfAVelrF5QQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cLtgzE2m; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D412606A31C; Thu, 26 Nov 2026 14:23:39 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E2CE1F000C6; Thu, 26 Nov 2026 14:23:39 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795703019; bh=TM3nSQU4U49T6GuNdT3oigc7kZQ4pNCPYHhbPmQrcTg=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=cLtgzE2m1YoJXGpueRMJ0WG9tvSKfNQlB02h6sqo7+CT8SIX7diyIjeNQZEBq+Rmt c3wVUQBaScWcqNmdizx9oeZqhcQnvwkubrAnPGao9ZHg/pRNuxscJLtGFEwWhyKHZe nD/eW4RvR6/G4RIOLr/J3D0i1W1bfaIVV4gV6Xo1o3NxvrDYmUXGUKIoxb5lrWYo0q Xm3lS0pcjZzeAgfeDD994mnwvbbJ6Bb4w8QRSJ88kkDhfkdRtNyJf6tq4OTMhrIQma cQteoWOcf297BZrDLqN31mAQGOYddmIaQKOZUGDlnYAJ1X9HJwRkWGecY/FtSID7JT LyLKLX3iIqGPg== 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>, Hao Li <hao.li@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>, "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> 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: <gmnosp2u47xewnszzrx4asmldxsyjtejyrbrng2ckrcfedymeu@evhwupv3iwhf> X-Received-Bytes: 10069