Messages in this thread | | | Date | Wed, 10 Aug 2022 11:12:35 -0400 | From | Johannes Weiner <> | Subject | Re: [PATCH 2/3] sched/psi: Remove unused parameter nbytes of psi_trigger_create() |
| |
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@bytedance.com>
Right, it relies on \0-termination which the callers psi_write() and kernfs_fop_write_iter() guarantee.
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
| |