diff options
author | Christian Brauner <christian.brauner@ubuntu.com> | 2020-02-05 14:26:19 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2020-02-12 17:57:51 -0500 |
commit | 17703097f3456498e6424614571648c6452f4d34 (patch) | |
tree | f302a8825f3e6bc554d92a19b6e89c49b00cd2ed /kernel/fork.c | |
parent | 6df970e4f5d2c273554550d40d8b92cea9bec1a0 (diff) | |
download | lwn-17703097f3456498e6424614571648c6452f4d34.tar.gz lwn-17703097f3456498e6424614571648c6452f4d34.zip |
cgroup: add cgroup_get_from_file() helper
Add a helper cgroup_get_from_file(). The helper will be used in
subsequent patches to retrieve a cgroup while holding a reference to the
struct file it was taken from.
Cc: Tejun Heo <tj@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Li Zefan <lizefan@huawei.com>
Cc: cgroups@vger.kernel.org
Acked-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions