[Devel] [PATCH RHEL7 COMMIT] ovl: enable kmem accounting for overlayfs inodes

Vasily Averin vvs at virtuozzo.com
Mon Sep 28 09:00:54 MSK 2020


The commit is pushed to "branch-rh7-3.10.0-1127.18.2.vz7.163.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1127.18.2.vz7.163.30
------>
commit d03763c0eaf282de8c4081f291658945791fa44e
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Mon Sep 28 09:00:54 2020 +0300

    ovl: enable kmem accounting for overlayfs inodes
    
    https://jira.sw.ru/browse/PSBM-108292
    Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
---
 fs/overlayfs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index fcb3f7a..d17276d 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;


More information about the Devel mailing list