|
@@ -1146,7 +1146,7 @@ struct dentry *cgroup1_mount(struct file_system_type *fs_type, int flags,
|
|
* path is super cold. Let's just sleep a bit and retry.
|
|
* path is super cold. Let's just sleep a bit and retry.
|
|
*/
|
|
*/
|
|
pinned_sb = kernfs_pin_sb(root->kf_root, NULL);
|
|
pinned_sb = kernfs_pin_sb(root->kf_root, NULL);
|
|
- if (IS_ERR(pinned_sb) ||
|
|
|
|
|
|
+ if (IS_ERR_OR_NULL(pinned_sb) ||
|
|
!percpu_ref_tryget_live(&root->cgrp.self.refcnt)) {
|
|
!percpu_ref_tryget_live(&root->cgrp.self.refcnt)) {
|
|
mutex_unlock(&cgroup_mutex);
|
|
mutex_unlock(&cgroup_mutex);
|
|
if (!IS_ERR_OR_NULL(pinned_sb))
|
|
if (!IS_ERR_OR_NULL(pinned_sb))
|