[RH7] ovl: account overlayfs inodes

Submitted by Vasily Averin on Sept. 26, 2020, 8:27 a.m.

Details

Message ID 26a41de9-267e-3bcc-d419-20c4b1ffed72@virtuozzo.com
State New
Series "ovl: account overlayfs inodes"
Headers show

Commit Message

Vasily Averin Sept. 26, 2020, 8:27 a.m.
https://jira.sw.ru/browse/PSBM-108292
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
---
 fs/overlayfs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index fcb3f7aae217..d17276df439f 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -1607,7 +1607,7 @@  static int __init ovl_init(void)
 	ovl_inode_cachep = kmem_cache_create("ovl_inode",
 					     sizeof(struct ovl_inode), 0,
 					     (SLAB_RECLAIM_ACCOUNT|
-					      SLAB_MEM_SPREAD),
+					      SLAB_MEM_SPREAD|SLAB_ACCOUNT),
 					     ovl_inode_init_once);
 	if (ovl_inode_cachep == NULL)
 		return -ENOMEM;