Commit 86d81ec5 authored by Youling Tang's avatar Youling Tang Committed by Kent Overstreet

bcachefs: Mark bch_inode_info as SLAB_ACCOUNT

After commit 230e9fc2 ("slab: add SLAB_ACCOUNT flag"), we need to mark
the inode cache as SLAB_ACCOUNT, similar to commit 5d097056 ("kmemcg:
account for certain kmem allocations to memcg")
Signed-off-by: default avatarYouling Tang <tangyouling@kylinos.cn>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent b02f973e
...@@ -2071,7 +2071,8 @@ int __init bch2_vfs_init(void) ...@@ -2071,7 +2071,8 @@ int __init bch2_vfs_init(void)
{ {
int ret = -ENOMEM; int ret = -ENOMEM;
bch2_inode_cache = KMEM_CACHE(bch_inode_info, SLAB_RECLAIM_ACCOUNT); bch2_inode_cache = KMEM_CACHE(bch_inode_info, SLAB_RECLAIM_ACCOUNT |
SLAB_ACCOUNT);
if (!bch2_inode_cache) if (!bch2_inode_cache)
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment