Skip to content

Commit

Permalink
cgroup: trivial style updates
Browse files Browse the repository at this point in the history
* Place newline before function opening brace in cgroup_kill_sb().

* Insert space before assignment in attach_task_by_pid()

tj: merged two patches into one.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
SeongJae Park authored and Tejun Heo committed Jan 18, 2014
1 parent b3ff8a2 commit dd4b0a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,8 @@ static struct dentry *cgroup_mount(struct file_system_type *fs_type,
return ERR_PTR(ret);
}

static void cgroup_kill_sb(struct super_block *sb) {
static void cgroup_kill_sb(struct super_block *sb)
{
struct cgroupfs_root *root = sb->s_fs_info;
struct cgroup *cgrp = &root->top_cgroup;
struct cgrp_cset_link *link, *tmp_link;
Expand Down Expand Up @@ -2117,7 +2118,7 @@ static int attach_task_by_pid(struct cgroup *cgrp, u64 pid, bool threadgroup)
tsk = find_task_by_vpid(pid);
if (!tsk) {
rcu_read_unlock();
ret= -ESRCH;
ret = -ESRCH;
goto out_unlock_cgroup;
}
/*
Expand Down

0 comments on commit dd4b0a4

Please sign in to comment.