diff options
| author | Zefan Li <[email protected]> | 2014-09-20 14:49:10 +0800 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2014-09-20 13:09:35 -0400 |
| commit | 0c7bf3e8cab7900e17ce7f97104c39927d835469 (patch) | |
| tree | d2d21b9687e7ef63fe87f2bfc772367dfaa6f239 /lib/netdev-notifier-error-inject.c | |
| parent | 3e2cd91ab92665148616a80dc0745c499d2746a7 (diff) | |
cgroup: remove redundant variable in cgroup_mount()
Both pinned_sb and new_sb indicate if a new superblock is needed,
so we can just remove new_sb.
Note now we must check if kernfs_tryget_sb() returns NULL, because
when it returns NULL, kernfs_mount() may still re-use an existing
superblock, which is just allocated by another concurent mount.
Suggested-by: Tejun Heo <[email protected]>
Signed-off-by: Zefan Li <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions