[Devel] [PATCH RHEL7 COMMIT] debugfs: drop set_exec_ub in file create
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Jun 10 09:33:00 PDT 2015
The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.12
------>
commit f1e7469789e5791c6e97457a60f9ef9cc0c1802e
Author: Vladimir Davydov <vdavydov at parallels.com>
Date: Wed Jun 10 20:33:00 2015 +0400
debugfs: drop set_exec_ub in file create
Hell knows why it was done - I haven't managed to find the patch. I can
only suspect that this was done to avoid charging the new dentry to
UBC/KMEM. Now, kmem is accounted on the memcg side, so this hunk is
needless. Remove it.
Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
fs/debugfs/inode.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index c736e20..c7c83ff 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -307,12 +307,9 @@ static struct dentry *__create_file(const char *name, umode_t mode,
{
struct dentry *dentry = NULL;
int error;
- struct user_beancounter *ub;
pr_debug("debugfs: creating file '%s'\n",name);
- ub = set_exec_ub(get_ub0());
-
error = simple_pin_fs(&debug_fs_type, &debugfs_mount,
&debugfs_mount_count);
if (error)
@@ -353,7 +350,6 @@ static struct dentry *__create_file(const char *name, umode_t mode,
simple_release_fs(&debugfs_mount, &debugfs_mount_count);
}
exit:
- set_exec_ub(ub);
return dentry;
}
More information about the Devel
mailing list