Skip to content

Commit 86d81ec

Browse files
tangyoulingKent Overstreet
authored andcommitted
bcachefs: Mark bch_inode_info as SLAB_ACCOUNT
After commit 230e9fc ("slab: add SLAB_ACCOUNT flag"), we need to mark the inode cache as SLAB_ACCOUNT, similar to commit 5d09705 ("kmemcg: account for certain kmem allocations to memcg") Signed-off-by: Youling Tang <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
1 parent b02f973 commit 86d81ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/bcachefs/fs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,8 @@ int __init bch2_vfs_init(void)
20712071
{
20722072
int ret = -ENOMEM;
20732073

2074-
bch2_inode_cache = KMEM_CACHE(bch_inode_info, SLAB_RECLAIM_ACCOUNT);
2074+
bch2_inode_cache = KMEM_CACHE(bch_inode_info, SLAB_RECLAIM_ACCOUNT |
2075+
SLAB_ACCOUNT);
20752076
if (!bch2_inode_cache)
20762077
goto err;
20772078

0 commit comments

Comments
 (0)