]> www.infradead.org Git - users/jedix/linux-maple.git/commit
zram: split memory-tracking and ac-time tracking
authorSergey Senozhatsky <senozhatsky@chromium.org>
Wed, 15 Nov 2023 02:42:12 +0000 (11:42 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:16:34 +0000 (13:16 -0800)
commit788f2985df9f4f0baa607ad25435cb93687d2d49
tree42cc9b4298e83a566d48efe30d88fc1ccc1639f7
parentd92b134dd1e407b9c59cd1053497caf5b5ee9f0a
zram: split memory-tracking and ac-time tracking

ZRAM_MEMORY_TRACKING enables two features:
- per-entry ac-time tracking
- debugfs interface

The latter one is the reason why memory-tracking depends on DEBUG_FS,
while the former one is used far beyond debugging these days.  Namely
ac-time is used for fine grained writeback of idle entries (pages).

Move ac-time tracking under its own config option so that it can be
enabled (along with writeback) on systems without DEBUG_FS.

Link: https://lkml.kernel.org/r/20231115024223.4133148-1-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Dmytro Maluka <dmaluka@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/admin-guide/blockdev/zram.rst
drivers/block/zram/Kconfig
drivers/block/zram/zram_drv.c
drivers/block/zram/zram_drv.h