Re: [PATCH] zram: introduce per-device debug_stat sysfs node

From: Minchan Kim
Date: Fri May 13 2016 - 19:08:05 EST



On Fri, May 13, 2016 at 10:03:58PM +0900, Sergey Senozhatsky wrote:
> debug_stat sysfs is read-only and represents various debugging
> data that zram developers may need. This file is not meant to be
> used by anyone else: its content is not documented and will change
> any time w/o any notice. Therefore, the output of debug_stat file
> contains a version string. To avoid any confusion, we will increase
> the version number every time we modify the output.
>
> At the moment this file exports only one value -- the number of
> re-compressions, IOW, the number of times compression fast path
> has failed. This stat is temporary any will be useful in case if
> any per-cpu compression streams regressions will be reported.
>
> Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>
> Acked-by: Minchan Kim <minchan@xxxxxxxxxx>

Fortunately, Andrew isn't pick up this patch yet so I want to replace
it to below suggested by Sergey which is better.