Re: [PATCH v2] mm/shrinker: fix name consistency issue in shrinker_debugfs_rename()

From: Roman Gushchin
Date: Wed Mar 05 2025 - 14:20:06 EST


On Wed, Mar 05, 2025 at 03:17:59PM +0800, Liu Ye wrote:
> After calling debugfs_change_name function, the return value should be
> checked and the old name restored. If debugfs_change_name fails, the new
> name memory should be freed. The effect is that the shrinker->name is not
> consistent with the name displayed in debugfs.
>
> Signed-off-by: Liu Ye <liuye@xxxxxxxxxx>
> Reviewed-by: Muchun Song <muchun.song@xxxxxxxxx>
> Reviewed-by:Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>

Reviewed-by: Roman Gushchin <roman.gushchin@xxxxxxxxx>

Thanks!