lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 9 Nov 2022 10:00:19 -0800 From: Eric Biggers <ebiggers@...nel.org> To: JunChao Sun <sunjunchao2870@...il.com> Cc: linux-ext4@...r.kernel.org, tytso@....edu, adilger.kernel@...ger.ca, jack@...e.cz Subject: Re: [PATCH] ext4: replace kmem_cache_create with KMEM_CACHE On Wed, Nov 09, 2022 at 07:38:22AM -0800, JunChao Sun wrote: > diff --git a/fs/ext4/readpage.c b/fs/ext4/readpage.c > index 3d21eae267fc..773176e7f9f5 100644 > --- a/fs/ext4/readpage.c > +++ b/fs/ext4/readpage.c > @@ -410,9 +410,8 @@ int ext4_mpage_readpages(struct inode *inode, > > int __init ext4_init_post_read_processing(void) > { > - bio_post_read_ctx_cache = > - kmem_cache_create("ext4_bio_post_read_ctx", > - sizeof(struct bio_post_read_ctx), 0, 0, NULL); > + bio_post_read_ctx_cache = KMEM_CACHE(bio_post_read_ctx, SLAB_RECLAIM_ACCOUNT); > + Why use SLAB_RECLAIM_ACCOUNT here? - Eric
Powered by blists - more mailing lists