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
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 26 2023, 8:59 PM
Parents
rGd91778e31fec: Remove duplicate code in l2arc_evict()
Branches
Unknown
Tags
Unknown