HomeFreeBSD

Fix the L2ARC write size calculating logic

Description

Fix the L2ARC write size calculating logic

l2arc_write_size() should return the write size after adjusting for trim
and overhead of the L2ARC log blocks. Also take into account the
allocated size of log blocks when deciding when to stop writing buffers
to L2ARC.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #14939

Details

Provenance
g_amanakis_yahoo.comAuthored on Jun 6 2023, 7:32 PM
GitHub <noreply@github.com>Committed on Jun 6 2023, 7:32 PM
Parents
rG8653f1de48ee: zdb: add -B option to generate backup stream
Branches
Unknown
Tags
Unknown