[Devel] [PATCH rh7] debugfs: drop set_exec_ub in file create

Vladimir Davydov vdavydov at parallels.com
Wed Jun 10 02:15:46 PDT 2015


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 c736e20b7c17..c7c83ff0f752 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;
 }
 
-- 
2.1.4




More information about the Devel mailing list