diff options
Diffstat (limited to 'module/zfs/arc.c')
-rw-r--r-- | module/zfs/arc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 392bf417c..f13b65e5b 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -755,6 +755,8 @@ hdr_cons(void *vbuf, void *unused, int kmflag) refcount_create(&buf->b_refcnt); cv_init(&buf->b_cv, NULL, CV_DEFAULT, NULL); mutex_init(&buf->b_freeze_lock, NULL, MUTEX_DEFAULT, NULL); + list_link_init(&buf->b_arc_node); + list_link_init(&buf->b_l2node); ARCSTAT_INCR(arcstat_hdr_size, HDR_SIZE); return (0); @@ -4354,6 +4356,7 @@ l2arc_add_vdev(spa_t *spa, vdev_t *vd, uint64_t start, uint64_t end) adddev->l2ad_hand = adddev->l2ad_start; adddev->l2ad_evict = adddev->l2ad_start; adddev->l2ad_first = B_TRUE; + list_link_init(&adddev->l2ad_node); ASSERT3U(adddev->l2ad_write, >, 0); /* |