summaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorTim Chase <[email protected]>2014-06-28 09:08:44 -0500
committerBrian Behlendorf <[email protected]>2014-07-01 14:09:56 -0700
commit4240dc332d2ca41c31d95a81d9217c1b311666ff (patch)
tree48f99ad4bbbe6a0e71a1e49a634d51d8aba08c3a /module/zfs
parentd4aae2a05475ed7a9b39bd0c6b4fe99085a1cbd5 (diff)
Comment the lack of real_LZ4_uncompress()
Added several comments regarding the removal of real_LZ4_uncompress() which exists in the reference implementation but has been removed here since it's not used. Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Tim Chase <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs')
-rw-r--r--module/zfs/lz4.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/zfs/lz4.c b/module/zfs/lz4.c
index a9aa02819..497296e35 100644
--- a/module/zfs/lz4.c
+++ b/module/zfs/lz4.c
@@ -115,6 +115,8 @@ lz4_decompress_zfs(void *s_start, void *d_start, size_t s_len,
* writes beyond dest + osize, and is therefore protected
* against malicious data packets.
* note : destination buffer must be already allocated
+ * note : real_LZ4_uncompress() is not used in ZFS so its code
+ * is not present here.
*
* Advanced Functions
*
@@ -866,6 +868,9 @@ real_LZ4_compress(const char *source, char *dest, int isize, int osize)
* it will never read outside of the input buffer. A corrupted input
* will produce an error result, a negative int, indicating the position
* of the error within input stream.
+ *
+ * Note[2]: real_LZ4_uncompress(), referred to above, is not used in ZFS so
+ * its code is not present here.
*/
static int