-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lz4_decompress_abd declared but not defined #8894
Conversation
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined anywhere. The declaration should be removed. External-issue: DLPX-47477 Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
This is a trivial change -- removing the unneeded prototype. Build testing is the only possible test for this ;). |
when i stumbled over this 2 weeks ago I had really hoped Delphix had a version of lz4 that could read ABDs and had just forgotten to upstream it. |
@allanjude if I recall correctly, that was functionality we wanted to add but haven't gotten to quite yet. |
FWIW, there was an ABD-aware lz4 decompress algorithm, but it was an unoptimized implementation and was much much slower than bcopy+lz4, so we abandoned it. Subsequent benchmarking has shown that the amount of performance that can be gained by avoiding the bcopy (i.e. bcopy+lz4 decompress vs just lz4 decompress) is minimal (<10% IIRC). The bcopy doesn't cost that much if you have to access the memory anyway - probably because once you bcopy, lz4 isn't touching main memory, it's getting everything from the on-CPU L3 cache. |
Codecov Report
@@ Coverage Diff @@
## master #8894 +/- ##
==========================================
+ Coverage 78.75% 78.8% +0.05%
==========================================
Files 382 382
Lines 117818 117808 -10
==========================================
+ Hits 92787 92839 +52
+ Misses 25031 24969 -62
Continue to review full report at Codecov.
|
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined anywhere. The declaration should be removed. Reviewed by: Dan Kimmel <dan.kimmel@delphix.com> Reviewed-by: Allan Jude <allanjude@freebsd.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> External-issue: DLPX-47477 Closes openzfs#8894
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined anywhere. The declaration should be removed. Reviewed by: Dan Kimmel <dan.kimmel@delphix.com> Reviewed-by: Allan Jude <allanjude@freebsd.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> External-issue: DLPX-47477 Closes openzfs#8894
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined anywhere. The declaration should be removed. Reviewed by: Dan Kimmel <dan.kimmel@delphix.com> Reviewed-by: Allan Jude <allanjude@freebsd.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> External-issue: DLPX-47477 Closes openzfs#8894
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined anywhere. The declaration should be removed. Reviewed by: Dan Kimmel <dan.kimmel@delphix.com> Reviewed-by: Allan Jude <allanjude@freebsd.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> External-issue: DLPX-47477 Closes openzfs#8894
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined anywhere. The declaration should be removed. Reviewed by: Dan Kimmel <dan.kimmel@delphix.com> Reviewed-by: Allan Jude <allanjude@freebsd.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> External-issue: DLPX-47477 Closes openzfs#8894
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined anywhere. The declaration should be removed. Reviewed by: Dan Kimmel <dan.kimmel@delphix.com> Reviewed-by: Allan Jude <allanjude@freebsd.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> External-issue: DLPX-47477 Closes #8894
Motivation and Context
lz4_decompress_abd
is declared in zio_compress.h but it is not definedanywhere.
Description
The declaration should be removed.
External-issue: DLPX-47477
How Has This Been Tested?
compiled
Types of changes
Checklist:
Signed-off-by
.