HomeFreeBSD

zfs: Avoid updating the L2ARC device header unnecessarily

Description

zfs: Avoid updating the L2ARC device header unnecessarily

From openzfs-master 0ae184a6b commit message:

If we do not write any buffers to the cache device and the evict hand
has not advanced do not update the cache device header.

Cherry-picked from openzfs 0ae184a6baaf71e155e9b19af81b75474622ff58
Patch Author: George Amanakis <gamanakis@gmail.com>

MFC after: 3 days
Reviewed by: delphij
Differential Revision: https://reviews.freebsd.org/D28682

Details

Provenance
mmAuthored on Feb 15 2021, 8:10 AM
Reviewer
delphij
Differential Revision
D28682: zfs: Avoid updating the L2ARC device header unnecessarily
Parents
rGf15e18a642cb: zfs: fix RAIDZ2/3 not healing parity with 2+ bad disks
Branches
Unknown
Tags
Unknown