Page MenuHomeFreeBSD

D28682.diff
No OneTemporary

D28682.diff

diff --git a/sys/contrib/openzfs/module/zfs/arc.c b/sys/contrib/openzfs/module/zfs/arc.c
--- a/sys/contrib/openzfs/module/zfs/arc.c
+++ b/sys/contrib/openzfs/module/zfs/arc.c
@@ -9062,6 +9062,7 @@
l2arc_write_callback_t *cb = NULL;
zio_t *pio, *wzio;
uint64_t guid = spa_load_guid(spa);
+ l2arc_dev_hdr_phys_t *l2dhdr = dev->l2ad_dev_hdr;
ASSERT3P(dev->l2ad_vdev, !=, NULL);
@@ -9293,7 +9294,8 @@
* Although we did not write any buffers l2ad_evict may
* have advanced.
*/
- l2arc_dev_hdr_update(dev);
+ if (dev->l2ad_evict != l2dhdr->dh_evict)
+ l2arc_dev_hdr_update(dev);
return (0);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 16, 3:24 PM (21 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15826730
Default Alt Text
D28682.diff (628 B)

Event Timeline