Corrected edge case in uncompressed ARC->L2ARC handling
commit7bf06f7262b52b6d8ac5725e072f46ad450485be
authorRich Ercolani <214141+rincebrain@users.noreply.github.com>
Wed, 4 May 2022 18:59:30 +0000 (4 14:59 -0400)
committerGitHub <noreply@github.com>
Wed, 4 May 2022 18:59:30 +0000 (4 11:59 -0700)
treedf8625c282008e9c9d2d4ca1380dfb7325c2aa5f
parent81b8b2d004442c3e7f196d61c2ae8eed02712b6c
Corrected edge case in uncompressed ARC->L2ARC handling

I genuinely don't know why this didn't come up before,
but adding the LZ4 early abort pointed out this flaw,
in which we're allocating a buffer of one size, and
then telling the compressor that we're handing it buffers
of a different size, which may be Very Different - say,
allocating 512b and then telling it the inputs are 128k.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Amanakis <gamanakis@gmail.com>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #13375
module/zfs/arc.c