From 4240dc332d2ca41c31d95a81d9217c1b311666ff Mon Sep 17 00:00:00 2001 From: Tim Chase Date: Sat, 28 Jun 2014 09:08:44 -0500 Subject: [PATCH] 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 Signed-off-by: Tim Chase Signed-off-by: Brian Behlendorf --- module/zfs/lz4.c | 5 +++++ 1 file changed, 5 insertions(+) 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