HomeFreeBSD

Improve L2 caching control for prefetched indirects

Description

Improve L2 caching control for prefetched indirects

dbuf_prefetch_impl() should look on level of current indirect, not
the target prefetch level. dbuf_prefetch_indirect_done() should
call dnode_level_is_l2cacheable() if we have dpa_dnode to pass it.
It should fix some both false positive and negative L2ARC caching.

While there, fix redacted feature activation assertions. One was
always true, while another could give false positive if dpa_dnode
is NULL.

George Amanakis <gamanakis@gmail.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #17204

Details

Provenance
mavAuthored on Apr 8 2025, 11:43 PM
GitHub <noreply@github.com>Committed on Apr 8 2025, 11:43 PM
Parents
rG8f08dbfbe1f6: debian: Add libtirpc-dev dependency (#17220)
Branches
Unknown
Tags
Unknown