Re: [PATCH linux-next v2] zram: use sysfs_emit() to instead of scnprintf()

From: Minchan Kim
Date: Tue Nov 15 2022 - 18:32:54 EST


Hi,

On Tue, Nov 15, 2022 at 08:04:47PM +0800, yang.yang29@xxxxxxxxxx wrote:
> From: Xu Panda <xu.panda@xxxxxxxxxx>
>
> Replace the open-code with sysfs_emit() to simplify the code.
> ---
> change for v2
> - realign params of sysfs_emit().
> ---
>
> Signed-off-by: Xu Panda <xu.panda@xxxxxxxxxx>
> Signed-off-by: Yang Yang <yang.yang29@xxxxxxx>

Recently, we added one more stat is using the scnprintf in mm-unstable
tree? recomp_algorithm_show

Could you also change it?

Thanks!