diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 2aa408201aa5d8a9f792bceaa586ddbd53cb6a7d..d8abe996e009702663d9769714f6428f88aac641 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -919,7 +919,6 @@ static int cgroup_get_rootdir(struct super_block *sb)
 	if (!inode)
 		return -ENOMEM;
 
-	inode->i_op = &simple_dir_inode_operations;
 	inode->i_fop = &simple_dir_operations;
 	inode->i_op = &cgroup_dir_inode_operations;
 	/* directories start off with i_nlink == 2 (for "." entry) */