diff options
| author | Maxime Ripard <[email protected]> | 2025-01-13 09:26:06 +0000 |
|---|---|---|
| committer | Maxime Ripard <[email protected]> | 2025-01-15 08:45:24 +0000 |
| commit | feb85972b82c9747ebb0843f91e4c1e023b47f3d (patch) | |
| tree | 8a9aac3bab9e4465b7e87a85d93395fe0b6b755b | |
| parent | cgroup/dmem: Select PAGE_COUNTER (diff) | |
| download | kernel-feb85972b82c9747ebb0843f91e4c1e023b47f3d.tar.gz kernel-feb85972b82c9747ebb0843f91e4c1e023b47f3d.zip | |
cgroup/dmem: Fix parameters documentation
During the dmem cgroup development, the parameters to the
dmem_cgroup_state_evict_valuable() and dmem_cgroup_try_charge() were
changed, but the documentation wasn't adjusted accordingly.
This results in a documentation build warning. Adjust the documentation
to reflect what the final functions parameters are.
Fixes: b168ed458dde ("kernel/cgroup: Add "dmem" memory accounting cgroup")
Reported-by: Stephen Rothwell <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Acked-by: Tejun Heo <[email protected]>
Reviewed-by: Simona Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Maxime Ripard <[email protected]>
| -rw-r--r-- | kernel/cgroup/dmem.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/cgroup/dmem.c b/kernel/cgroup/dmem.c index 78d9361ed521..fbe34299673d 100644 --- a/kernel/cgroup/dmem.c +++ b/kernel/cgroup/dmem.c @@ -280,8 +280,6 @@ dmem_cgroup_calculate_protection(struct dmem_cgroup_pool_state *limit_pool, /** * dmem_cgroup_state_evict_valuable() - Check if we should evict from test_pool - * @dev: &dmem_cgroup_region - * @index: The index number of the region being tested. * @limit_pool: The pool for which we hit limits * @test_pool: The pool for which to test * @ignore_low: Whether we have to respect low watermarks. @@ -610,13 +608,12 @@ EXPORT_SYMBOL_GPL(dmem_cgroup_uncharge); /** * dmem_cgroup_try_charge() - Try charging a new allocation to a region. - * @dev: Device to charge + * @region: dmem region to charge * @size: Size (in bytes) to charge. * @ret_pool: On succesfull allocation, the pool that is charged. * @ret_limit_pool: On a failed allocation, the limiting pool. * - * This function charges the current pool for @dev with region at @index for a - * size of @size bytes. + * This function charges the @region region for a size of @size bytes. * * If the function succeeds, @ret_pool is set, which must be passed to * dmem_cgroup_uncharge() when undoing the allocation. |
