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

Submitted by Vasily Averin on Sept. 28, 2020, 6 a.m.

Details

Message ID 202009280600.08S60sRw021053@vz7build.vvs.sw.ru
State New
Series "ovl: account overlayfs inodes"
Headers show

Commit Message

Vasily Averin Sept. 28, 2020, 6 a.m.
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@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@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 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;