diff options
author | Matthew Ahrens <[email protected]> | 2019-05-02 16:46:04 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-05-02 16:46:04 -0700 |
commit | 8d9f616511cbb1775e0225b3315f4713135da7f6 (patch) | |
tree | 8bb2756ec178762b79fe8652178fb6b39068c304 /module/zfs/lz4.c | |
parent | fa241660743d75a97001509c613b400fb60f26be (diff) |
Reword comment in lz4_compress_zfs
The comment in lz4_compress_zfs could be more clear and specific. It
also contains needlessly strong language.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Serapheim Dimitropoulos <[email protected]>
Signed-off-by: Matthew Ahrens <[email protected]>
Closes: #8702
Closes: #8703
Diffstat (limited to 'module/zfs/lz4.c')
-rw-r--r-- | module/zfs/lz4.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/zfs/lz4.c b/module/zfs/lz4.c index 9b9a2e693..c04cfa7ba 100644 --- a/module/zfs/lz4.c +++ b/module/zfs/lz4.c @@ -63,10 +63,10 @@ lz4_compress_zfs(void *s_start, void *d_start, size_t s_len, return (s_len); /* - * Encode the compressed buffer size at the start. We'll need this in - * decompression to counter the effects of padding which might be - * added to the compressed buffer and which, if unhandled, would - * confuse the hell out of our decompression function. + * The exact compressed size is needed by the decompression routine, + * so it is stored at the start of the buffer. Note that this may be + * less than the compressed block size, which is rounded up to a + * multiple of 1<<ashift. */ *(uint32_t *)dest = BE_32(bufsiz); |