All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,richardycc@google.com,minchan@kernel.org,
	senozhatsky@chromium.org,akpm@linux-foundation.org
Subject: + zram-rename-mark_idle-to-mark_slots_idle.patch added to mm-new branch
Date: Tue, 01 Dec 2026 12:45:48 -0800	[thread overview]
Message-ID: <20261201204548.651281F000C1@smtp.kernel.org> (raw)
In-Reply-To: <20261201090703.1040645-8-senozhatsky@chromium.org>


The patch titled
     Subject: zram: rename mark_idle() to mark_slots_idle()
has been added to the -mm mm-new branch.  Its filename is
     zram-rename-mark_idle-to-mark_slots_idle.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/zram-rename-mark_idle-to-mark_slots_idle.patch

This patch will later appear in the mm-new branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews.  Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.

The mm-new branch of mm.git is not included in linux-next

If a few days of testing in mm-new is successful, the patch will me moved
into mm.git's mm-unstable branch, which is included in linux-next

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days

------------------------------------------------------
From: Sergey Senozhatsky <senozhatsky@chromium.org>
Subject: zram: rename mark_idle() to mark_slots_idle()
Date: Tue, 01 Dec 2026 18:06:40 +0900

Rename mark_idle() to mark_slots_idle() so that its naming follows current
zram conventions: mark_slot_accessed(), set_slot_flag(), etc.

While at it, fix up the comments (there is no init lock anymore, and the
cutoff check has always been strict) and make trivial coding style tweaks.

Link: https://patch.msgid.link/20261201090703.1040645-8-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Richard Chang <richardycc@google.com>

 drivers/block/zram/zram_drv.c |   14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

--- a/drivers/block/zram/zram_drv.c~zram-rename-mark_idle-to-mark_slots_idle
+++ a/drivers/block/zram/zram_drv.c
@@ -435,10 +435,10 @@ static ssize_t mem_used_max_store(struct
 }
 
 /*
- * Mark all pages which are older than or equal to cutoff as IDLE.
- * Callers should hold the zram init lock in read mode
+ * Mark all slots which are older than cutoff as IDLE.
+ * Callers should hold the zram dev lock in read mode
  */
-static void mark_idle(struct zram *zram, time64_t cutoff)
+static void mark_slots_idle(struct zram *zram, time64_t cutoff)
 {
 	int is_idle = 1;
 	unsigned long nr_pages = zram->disksize >> PAGE_SHIFT;
@@ -461,8 +461,7 @@ static void mark_idle(struct zram *zram,
 		}
 
 #ifdef CONFIG_ZRAM_TRACK_ENTRY_ACTIME
-		is_idle = !cutoff ||
-			cutoff > zram->table[index].attr.ac_time;
+		is_idle = !cutoff || cutoff > zram->table[index].attr.ac_time;
 #endif
 		if (is_idle)
 			set_slot_flag(zram, index, ZRAM_IDLE);
@@ -503,10 +502,9 @@ static ssize_t idle_store(struct device
 		return -EINVAL;
 
 	/*
-	 * A cutoff of 0 marks everything as idle, this is the
-	 * "all" behavior.
+	 * A cutoff of 0 marks everything as idle, this is the "all" behavior.
 	 */
-	mark_idle(zram, cutoff);
+	mark_slots_idle(zram, cutoff);
 	return len;
 }
 
_

Patches currently in -mm which might be from senozhatsky@chromium.org are

zram-prefix-backends-printk-s.patch
zram-remove-debugfs-entry-on-init-failure.patch
zram-reset-writeback-state-in-zram_reset_device.patch
zram-move-mark_slot_accessed-under-existing-slot-lock-sections.patch
zram-remove-stale-warn_on-from-zram_read_page.patch
zram-zstd-do-not-allocate-empty-c-d-dictionaries.patch
zram-lz4hc-pre-initialize-dictionary-stream-in-setup_params.patch
zram-lz4-use-lz4_decompress_safe_usingdict.patch
zram-lz4hc-use-lz4_decompress_safe_usingdict.patch
zram-zstd-do-not-use-kvzalloc-for-zstd-allocations.patch
zram-split-zcomp-into-separate-r-w-streams.patch
zram-introduce-shared-decompression-streams.patch
zram-allocate-bounce-buffer-for-spanning-objects.patch
zram-borrow-idle-decompression-streams-in-exclusive-mode.patch
zram-use-a-singleton-compression-context-for-recompression.patch
zram-drop-stale-comment-in-write_incompressible_page.patch
zram-drop-get_slot_handle-and-set_slot_handle.patch
zsmalloc-return-handle-from-obj_allocated.patch
zsmalloc-switch-handle-type-to-struct-zs_handle.patch
zram-check-mem_limit-before-allocating-zsmalloc-object.patch
zram-allocate-zsmalloc-object-under-slot-lock.patch
zswap-do-not-free-the-entry-if-its-pool-is-null.patch
zsmalloc-encode-1-based-obj_idx-so-valid-obj-is-never-0.patch
zsmalloc-embed-struct-zs_handle-into-zram-and-zswap-entries.patch
zsmalloc-fold-zs_obj_write-into-zs_store.patch
zsmalloc-populate-new-zspage-outside-class-lock-in-zs_store.patch
zram-fix-quadratic-writeback-bitmap-search.patch
zsmalloc-free-a-zspages-pages-in-one-batch.patch
zram-keep-the-hot-statistics-per-cpu.patch
zram-do-not-modify-cont-sysfs-store-buffers.patch
zram-avoid-rollback-uaf-in-zcomp_cpu_up_prepare.patch
zram-publish-streams-under-lock-in-zcomp_cpu_up_prepare.patch
zram-allocate-comp-only-if-it-is-supported.patch
zram-validate-level-before-allocation-in-zstd_setup_params.patch
zram-defer-wb_ctl-allocation-in-writeback_store.patch
zram-remove-out-label-in-recompress_store.patch
zram-create-debugfs-dir-after-register_blkdev-in-zram_init.patch
zram-respect-80-cols-limit-in-zram_meta_alloc.patch
zram-rename-mark_idle-to-mark_slots_idle.patch
zsmalloc-fix-spdx-license-identifier.patch
zram-use-spdx-license-identifier.patch
maintainers-add-mm-and-block-lists-to-zram-entry.patch


      reply	other threads:[~2026-12-01 20:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  9:06 [PATCH 0/7] zram: a set of trivial code cleanups and tweaks Sergey Senozhatsky
2026-12-01  9:06 ` [PATCH 1/7] zram: allocate comp only if it is supported Sergey Senozhatsky
2026-12-01 20:45   ` + zram-allocate-comp-only-if-it-is-supported.patch added to mm-new branch Andrew Morton
2026-12-01  9:06 ` [PATCH 2/7] zram: validate level before allocation in zstd_setup_params() Sergey Senozhatsky
2026-12-01 20:45   ` + zram-validate-level-before-allocation-in-zstd_setup_params.patch added to mm-new branch Andrew Morton
2026-12-01  9:06 ` [PATCH 3/7] zram: defer wb_ctl allocation in writeback_store() Sergey Senozhatsky
2026-12-01 20:45   ` + zram-defer-wb_ctl-allocation-in-writeback_store.patch added to mm-new branch Andrew Morton
2026-12-01  9:06 ` [PATCH 4/7] zram: remove out label in recompress_store() Sergey Senozhatsky
2026-12-01 20:45   ` + zram-remove-out-label-in-recompress_store.patch added to mm-new branch Andrew Morton
2026-12-01  9:06 ` [PATCH 5/7] zram: create debugfs dir after register_blkdev() in zram_init() Sergey Senozhatsky
2026-12-01 20:45   ` + zram-create-debugfs-dir-after-register_blkdev-in-zram_init.patch added to mm-new branch Andrew Morton
2026-12-01  9:06 ` [PATCH 6/7] zram: respect 80-cols limit in zram_meta_alloc() Sergey Senozhatsky
2026-12-01 20:45   ` + zram-respect-80-cols-limit-in-zram_meta_alloc.patch added to mm-new branch Andrew Morton
2026-12-01  9:06 ` [PATCH 7/7] zram: rename mark_idle() to mark_slots_idle() Sergey Senozhatsky
2026-12-01 20:45   ` Andrew Morton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201204548.651281F000C1@smtp.kernel.org \
    --to=akpm@linux-foundation.org \
    --cc=minchan@kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=richardycc@google.com \
    --cc=senozhatsky@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.