On Thu, Nov 10, 2022 at 08:53:26AM +0800, JunChao Sun wrote: > Yeah, maybe we should remove the SLAB_RECLAIM_ACCOUNT flag for static > slab, and 16828088f9e51815 ("ext4: use KMEM_CACHE instead of > kmem_cache_create") have done so. But should we remove > SLAB_RECLAIM_ACCOUNT in this patch or belong to a separate patch? I'd just keep the slab flags the same in this patch. If any flags do need to be changed, that should be a separate patch. I think SLAB_RECLAIM_ACCOUNT is meant for for things that are directly reclaimable, such as struct ext4_inode_info. Inodes are evictable, and when that happens, the corresponding struct ext4_inode_info gets freed. bio_post_read_ctx_cache probably should use SLAB_TEMPORARY instead, since it is only used for temporary structures during I/O. That being said, SLAB_TEMPORARY is currently #define'd to SLAB_RECLAIM_ACCOUNT, so currently it makes no difference in practice... - Eric