Re: [PATCH 2/3] sched/psi: Remove unused parameter nbytes of psi_trigger_create()

From: Johannes Weiner
Date: Wed Aug 10 2022 - 11:13:24 EST


On Sat, Aug 06, 2022 at 08:05:09PM +0800, Hao Jia wrote:
> psi_trigger_create()'s 'nbytes' parameter is not used, so we can remove it.
>
> Signed-off-by: Hao Jia <jiahao.os@xxxxxxxxxxxxx>

Right, it relies on \0-termination which the callers psi_write() and
kernfs_fop_write_iter() guarantee.

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>