linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] zram: fixup mark_slot_accessed()
       [not found] <20251216022729.E4A43C4CEF5@smtp.kernel.org>
@ 2026-01-15  3:19 ` Sergey Senozhatsky
  0 siblings, 0 replies; only message in thread
From: Sergey Senozhatsky @ 2026-01-15  3:19 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, linux-mm, Sergey Senozhatsky, Chris Mason

mark_slot_accessed() should continue using ktime_get_boottime_seconds()

Reported-by: Chris Mason <clm@meta.com>
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---
 drivers/block/zram/zram_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index 76a54eabe889..cc51aa8b6181 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -190,7 +190,7 @@ static void mark_slot_accessed(struct zram *zram, u32 index)
 	clear_slot_flag(zram, index, ZRAM_IDLE);
 	clear_slot_flag(zram, index, ZRAM_PP_SLOT);
 #ifdef CONFIG_ZRAM_TRACK_ENTRY_ACTIME
-	zram->table[index].attr.ac_time = ktime_get_boottime();
+	zram->table[index].attr.ac_time = (u32)ktime_get_boottime_seconds();
 #endif
 }
 
-- 
2.52.0.457.g6b5491de43-goog



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-01-15  3:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20251216022729.E4A43C4CEF5@smtp.kernel.org>
2026-01-15  3:19 ` [PATCH 1/2] zram: fixup mark_slot_accessed() Sergey Senozhatsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox