linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] zram: zcomp_strm remove ambiguous description
@ 2021-06-07 16:08 yongw.pur
  0 siblings, 0 replies; only message in thread
From: yongw.pur @ 2021-06-07 16:08 UTC (permalink / raw)
  To: minchan, ngupta, senozhatsky, axboe, linux-kernel, linux-block,
	wang.yong12

From: wangyong <wang.yong12@zte.com.cn>

buffer element in the structure is only used for compression.
buffer element is not used in decompression.
So "/* compression/decompression buffer */" is a little ambiguous.

buffer is used in the following two places:
1.__zram_bvec_write: src = zstrm->buffer
2.zcomp_compress: crypto_comp_compress(zstrm->tfm,
                        src, PAGE_SIZE,
                        zstrm->buffer, dst_len);

Signed-off-by: wangyong <wang.yong12@zte.com.cn>
---
 drivers/block/zram/zcomp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/zram/zcomp.h b/drivers/block/zram/zcomp.h
index 40f6420..0aac4b2 100644
--- a/drivers/block/zram/zcomp.h
+++ b/drivers/block/zram/zcomp.h
@@ -10,7 +10,7 @@
 struct zcomp_strm {
 	/* The members ->buffer and ->tfm are protected by ->lock. */
 	local_lock_t lock;
-	/* compression/decompression buffer */
+	/* compression buffer */
 	void *buffer;
 	struct crypto_comp *tfm;
 };
-- 
2.7.4


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

only message in thread, other threads:[~2021-06-07 16:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07 16:08 [PATCH] zram: zcomp_strm remove ambiguous description yongw.pur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).