cgroup: remove bind() method from cgroup_subsys.
[firefly-linux-kernel-4.4.55.git] / kernel / cgroup.c
index ba3e24a76daeccee7dcff9f94de6d1802fcd1014..fd38e1cfaccae18f887cd32a393b565ebec58aea 100644 (file)
@@ -1064,16 +1064,12 @@ static int rebind_subsystems(struct cgroupfs_root *root,
                        cgrp->subsys[i]->cgroup = cgrp;
                        list_move(&ss->sibling, &root->subsys_list);
                        ss->root = root;
-                       if (ss->bind)
-                               ss->bind(cgrp);
                        /* refcount was already taken, and we're keeping it */
                } else if (bit & removed_mask) {
                        /* We're removing this subsystem */
                        BUG_ON(ss == NULL);
                        BUG_ON(cgrp->subsys[i] != dummytop->subsys[i]);
                        BUG_ON(cgrp->subsys[i]->cgroup != cgrp);
-                       if (ss->bind)
-                               ss->bind(dummytop);
                        dummytop->subsys[i]->cgroup = dummytop;
                        cgrp->subsys[i] = NULL;
                        subsys[i]->root = &rootnode;