If a write operation comes in and is not a read-modify-write but we don't end up compressing the data (because of either error or we decide the compression ratio isn't good enough) then we not only need to copy the data to the host buffers but we need to zero any offset and/or remainder in the decomp scratch buffer. Change-Id: Ifb2235507826f9ef1110dd9dbaf88045d8979e7c Signed-off-by: paul luse <paul.e.luse@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463337 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
reduce.c |