]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfs: Avoid updating the L2ARC device header unnecessarily
authorMartin Matuska <mm@FreeBSD.org>
Mon, 15 Feb 2021 08:10:01 +0000 (09:10 +0100)
committerMartin Matuska <mm@FreeBSD.org>
Thu, 18 Feb 2021 09:01:16 +0000 (10:01 +0100)
commit0be7053c91b9fadc9a344926f8ccbd5424b9f2fc
tree54bba8ac3a0061e547ca52df25fa70f9711c1f2c
parent223debfb954c924897aad393dc8b830cb1d507f8
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>

Approved by: re (gjb)
Reviewed by:            delphij
Differential Revision:  https://reviews.freebsd.org/D28682

(cherry picked from commit 5dce03847fdc7bc6eb959282c0ae2117b1991746)
(cherry picked from commit edb9049c3a782a51a77bd81a478c28cd1745323c)
sys/contrib/openzfs/module/zfs/arc.c