Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107539580
D28682.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
628 B
Referenced Files
None
Subscribers
None
D28682.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D28682: zfs: Avoid updating the L2ARC device header unnecessarily
Attached
Detach File
Event Timeline
Log In to Comment