Thread (45 messages) 45 messages, 6 authors, 2023-08-03

Re: [RFC PATCH 08/21] zram: Migrate to acomp compression API

From: Simon Horman <hidden>
Date: 2023-07-21 09:23:08
Also in: linux-block, linux-crypto, lkml, netdev

On Tue, Jul 18, 2023 at 02:58:34PM +0200, Ard Biesheuvel wrote:

...
quoted hunk ↗ jump to hunk
@@ -1618,9 +1614,7 @@ static int zram_recompress(struct zram *zram, u32 index, struct page *page,
 
 		num_recomps++;
 		zstrm = zcomp_stream_get(zram->comps[prio]);
-		src = kmap_atomic(page);
-		ret = zcomp_compress(zstrm, src, &comp_len_new);
-		kunmap_atomic(src);
+		ret = zcomp_compress(zstrm, page, &comp_len_new);
Hi Ard,

src appears to be unused in this function with this change.
 
 		if (ret) {
 			zcomp_stream_put(zram->comps[prio]);
...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help