Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/r/20250113160334.1f09f881@canb.auug.org.au/
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20250113092608.1349287-2-mripard@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>

+2 -5
+2 -5
kernel/cgroup/dmem.c
··· 280 280 281 281 /** 282 282 * dmem_cgroup_state_evict_valuable() - Check if we should evict from test_pool 283 - * @dev: &dmem_cgroup_region 284 - * @index: The index number of the region being tested. 285 283 * @limit_pool: The pool for which we hit limits 286 284 * @test_pool: The pool for which to test 287 285 * @ignore_low: Whether we have to respect low watermarks. ··· 608 610 609 611 /** 610 612 * dmem_cgroup_try_charge() - Try charging a new allocation to a region. 611 - * @dev: Device to charge 613 + * @region: dmem region to charge 612 614 * @size: Size (in bytes) to charge. 613 615 * @ret_pool: On succesfull allocation, the pool that is charged. 614 616 * @ret_limit_pool: On a failed allocation, the limiting pool. 615 617 * 616 - * This function charges the current pool for @dev with region at @index for a 617 - * size of @size bytes. 618 + * This function charges the @region region for a size of @size bytes. 618 619 * 619 620 * If the function succeeds, @ret_pool is set, which must be passed to 620 621 * dmem_cgroup_uncharge() when undoing the allocation.