On Thu, Sep 23, 2021 at 06:01:15AM -0700, Brian Geffon wrote: > This change introduces an aged idle interface to the existing > idle sysfs file for zram. > > When CONFIG_ZRAM_MEMORY_TRACKING is enabled the idle file > now also accepts an integer argument. This integer is the > age (in seconds) of pages to mark as idle. The idle file > still supports 'all' as it always has. This new approach > allows for much more control over which pages get marked > as idle. > > v3 -> v4: > - Remove base10 restriction. > > v2 -> v3: > - Correct unused variable warning when > CONFIG_ZRAM_MEMORY_TRACKING is not enabled. > v1 -> v2: > - Switch to using existing idle file. > - Dont compare ktime directly. > > Signed-off-by: Brian Geffon <bgeffon@xxxxxxxxxx> Acked-by: Minchan Kim <minchan@xxxxxxxxxx>