Skip to content

Commit b675d4b

Browse files
yosrym93htejun
authored andcommitted
mm: cgroup: fix comments for get from fd/file helpers
Fix the documentation comments for cgroup_[v1v2_]get_from_[fd/file](). Reported-by: kernel test robot <[email protected]> Signed-off-by: Yosry Ahmed <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 8248fe4 commit b675d4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/cgroup/cgroup.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6246,6 +6246,7 @@ static struct cgroup *cgroup_v1v2_get_from_file(struct file *f)
62466246
/**
62476247
* cgroup_get_from_file - same as cgroup_v1v2_get_from_file, but only supports
62486248
* cgroup2.
6249+
* @f: file corresponding to cgroup2_dir
62496250
*/
62506251
static struct cgroup *cgroup_get_from_file(struct file *f)
62516252
{
@@ -6753,7 +6754,7 @@ struct cgroup *cgroup_get_from_path(const char *path)
67536754
EXPORT_SYMBOL_GPL(cgroup_get_from_path);
67546755

67556756
/**
6756-
* cgroup_get_from_fd - get a cgroup pointer from a fd
6757+
* cgroup_v1v2_get_from_fd - get a cgroup pointer from a fd
67576758
* @fd: fd obtained by open(cgroup_dir)
67586759
*
67596760
* Find the cgroup from a fd which should be obtained
@@ -6778,6 +6779,7 @@ struct cgroup *cgroup_v1v2_get_from_fd(int fd)
67786779
/**
67796780
* cgroup_get_from_fd - same as cgroup_v1v2_get_from_fd, but only supports
67806781
* cgroup2.
6782+
* @fd: fd obtained by open(cgroup2_dir)
67816783
*/
67826784
struct cgroup *cgroup_get_from_fd(int fd)
67836785
{

0 commit comments

Comments
 (0)