Skip to contentSkip to conversation

cgroup/dmem: Fix eviction helper reference in dmem_cgroup_try_charge()

PATCH Applied Karl Mehltretter 2 participants 2 messages Sep 11 – Sep 13

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cgroup/dmem: Fix eviction helper reference in dmem_cgroup_try_charge()

The kernel-doc comment of dmem_cgroup_try_charge() refers to dmem_cgroup_evict_valuable, which does not exist. The name is dmem_cgroup_state_evict_valuable. Say dmem_cgroup_state_evict_valuable.

Fixes b168ed458dde ("kernel/cgroup: Add "dmem" memory accounting cgroup")
Assisted-by LLM
---
 kernel/cgroup/dmem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/cgroup/dmem.c +1 -1
index 4683f3d6802268ddad40bd5d9e10305fc4dfddc5..13dbd083f6dedf83002ee7e7912e1f983e3594f0 100644
@@ -706,7 +706,7 @@ EXPORT_SYMBOL_GPL(dmem_cgroup_uncharge);
  *
  * When this function fails with -EAGAIN and @ret_limit_pool is non-null, it
  * will be set to the pool for which the limit is hit. This can be used for
- * eviction as argument to dmem_cgroup_evict_valuable(). This reference must be freed
+ * eviction as argument to dmem_cgroup_state_evict_valuable(). This reference must be freed
  * with @dmem_cgroup_pool_state_put().
  *
  * Return: 0 on success, -EAGAIN on hitting a limit, or a negative errno on failure.
maintainer Applied
#1 lore raw

Hello,

Applied to cgroup/for-7.4 with the comment rewrapped.

Thanks.

Signature · 1 line
tejun