diff options
author | Yosry Ahmed <yosryahmed@google.com> | 2022-10-11 22:51:55 +0000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2022-10-11 22:04:38 -1000 |
commit | b675d4bdfefac2fd46838383ecb3c06ad0f4c94d (patch) | |
tree | 357322669b616d08e86d45df8700081705c044d6 /kernel/cgroup | |
parent | 8248fe413216732f98563e8882b6c6ae617c327b (diff) | |
download | linux-stable-b675d4bdfefac2fd46838383ecb3c06ad0f4c94d.tar.gz linux-stable-b675d4bdfefac2fd46838383ecb3c06ad0f4c94d.tar.bz2 linux-stable-b675d4bdfefac2fd46838383ecb3c06ad0f4c94d.zip |
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 <lkp@intel.com>
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r-- | kernel/cgroup/cgroup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 6349a9fe9ec1..d922773fa90b 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -6246,6 +6246,7 @@ static struct cgroup *cgroup_v1v2_get_from_file(struct file *f) /** * cgroup_get_from_file - same as cgroup_v1v2_get_from_file, but only supports * cgroup2. + * @f: file corresponding to cgroup2_dir */ static struct cgroup *cgroup_get_from_file(struct file *f) { @@ -6753,7 +6754,7 @@ out: EXPORT_SYMBOL_GPL(cgroup_get_from_path); /** - * cgroup_get_from_fd - get a cgroup pointer from a fd + * cgroup_v1v2_get_from_fd - get a cgroup pointer from a fd * @fd: fd obtained by open(cgroup_dir) * * Find the cgroup from a fd which should be obtained @@ -6778,6 +6779,7 @@ struct cgroup *cgroup_v1v2_get_from_fd(int fd) /** * cgroup_get_from_fd - same as cgroup_v1v2_get_from_fd, but only supports * cgroup2. + * @fd: fd obtained by open(cgroup2_dir) */ struct cgroup *cgroup_get_from_fd(int fd) { |