diff options
author | Zefan Li <lizefan@huawei.com> | 2014-09-20 14:49:10 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-09-20 13:09:35 -0400 |
commit | 0c7bf3e8cab7900e17ce7f97104c39927d835469 (patch) | |
tree | d2d21b9687e7ef63fe87f2bfc772367dfaa6f239 /net/ipv4/tcp.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 <tj@kernel.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'net/ipv4/tcp.c')
0 files changed, 0 insertions, 0 deletions