mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-05-03 23:42:43 +03:00
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 <behlendorf1@llnl.gov> Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> Closes: #8702 Closes: #8703
This commit is contained in:
parent
fa24166074
commit
8d9f616511
@ -63,10 +63,10 @@ lz4_compress_zfs(void *s_start, void *d_start, size_t s_len,
|
|||||||
return (s_len);
|
return (s_len);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Encode the compressed buffer size at the start. We'll need this in
|
* The exact compressed size is needed by the decompression routine,
|
||||||
* decompression to counter the effects of padding which might be
|
* so it is stored at the start of the buffer. Note that this may be
|
||||||
* added to the compressed buffer and which, if unhandled, would
|
* less than the compressed block size, which is rounded up to a
|
||||||
* confuse the hell out of our decompression function.
|
* multiple of 1<<ashift.
|
||||||
*/
|
*/
|
||||||
*(uint32_t *)dest = BE_32(bufsiz);
|
*(uint32_t *)dest = BE_32(bufsiz);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user