* + zsmalloc-introduce-sg-list-based-object-read-api-fix.patch added to mm-unstable branch
@ 2026-01-17 3:28 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-01-17 3:28 UTC (permalink / raw)
To: mm-commits, yosry.ahmed, nphamcs, minchan, herbert, hannes,
bgeffon, senozhatsky, akpm
The patch titled
Subject: zsmalloc: fixup zsmalloc-introduce-sg-list-based-object-read-api.patch
has been added to the -mm mm-unstable branch. Its filename is
zsmalloc-introduce-sg-list-based-object-read-api-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/zsmalloc-introduce-sg-list-based-object-read-api-fix.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
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: zsmalloc: fixup zsmalloc-introduce-sg-list-based-object-read-api.patch
Date: Sat, 17 Jan 2026 11:48:40 +0900
zs_obj_read_sg_begin() always returns 0, convert it to void (per Yosry).
Link: https://lkml.kernel.org/r/20260117024900.792237-1-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Brian Geffon <bgeffon@google.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nhat Pham <nphamcs@gmail.com>
Cc: Yosry Ahmed <yosry.ahmed@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/linux/zsmalloc.h | 4 ++--
mm/zsmalloc.c | 6 ++----
2 files changed, 4 insertions(+), 6 deletions(-)
--- a/include/linux/zsmalloc.h~zsmalloc-introduce-sg-list-based-object-read-api-fix
+++ a/include/linux/zsmalloc.h
@@ -44,8 +44,8 @@ void *zs_obj_read_begin(struct zs_pool *
size_t mem_len, void *local_copy);
void zs_obj_read_end(struct zs_pool *pool, unsigned long handle,
size_t mem_len, void *handle_mem);
-int zs_obj_read_sg_begin(struct zs_pool *pool, unsigned long handle,
- struct scatterlist *sg, size_t mem_len);
+void zs_obj_read_sg_begin(struct zs_pool *pool, unsigned long handle,
+ struct scatterlist *sg, size_t mem_len);
void zs_obj_read_sg_end(struct zs_pool *pool, unsigned long handle);
void zs_obj_write(struct zs_pool *pool, unsigned long handle,
void *handle_mem, size_t mem_len);
--- a/mm/zsmalloc.c~zsmalloc-introduce-sg-list-based-object-read-api-fix
+++ a/mm/zsmalloc.c
@@ -1142,8 +1142,8 @@ void zs_obj_read_end(struct zs_pool *poo
}
EXPORT_SYMBOL_GPL(zs_obj_read_end);
-int zs_obj_read_sg_begin(struct zs_pool *pool, unsigned long handle,
- struct scatterlist *sg, size_t mem_len)
+void zs_obj_read_sg_begin(struct zs_pool *pool, unsigned long handle,
+ struct scatterlist *sg, size_t mem_len)
{
struct zspage *zspage;
struct zpdesc *zpdesc;
@@ -1186,8 +1186,6 @@ int zs_obj_read_sg_begin(struct zs_pool
sg_set_page(sg, zpdesc_page(zpdesc), sizes[1], 0);
}
-
- return 0;
}
EXPORT_SYMBOL_GPL(zs_obj_read_sg_begin);
_
Patches currently in -mm which might be from senozhatsky@chromium.org are
zram-document-writeback_batch_size.patch
zram-move-bd_stat-to-writeback-section.patch
zram-rename-zram_free_page.patch
zram-switch-to-guard-for-init_lock.patch
zram-consolidate-device-attr-declarations.patch
zram-use-u32-for-entry-ac_time-tracking.patch
zram-rename-internal-slot-api.patch
zram-rename-internal-slot-api-fix.patch
zram-trivial-fix-of-recompress_slot-coding-styles.patch
zram-fixup-read_block_state.patch
zram-drop-pp_in_progress.patch
zsmalloc-use-actual-object-size-to-detect-spans.patch
zsmalloc-introduce-sg-list-based-object-read-api.patch
zsmalloc-introduce-sg-list-based-object-read-api-fix.patch
zram-rename-init_lock-to-dev_lock.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-17 3:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-17 3:28 + zsmalloc-introduce-sg-list-based-object-read-api-fix.patch added to mm-unstable branch Andrew Morton
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.