Lines Matching defs:l2hdr
2350 l2arc_buf_hdr_t *l2hdr = &hdr->b_l2hdr;
2351 l2arc_dev_t *dev = l2hdr->b_dev;
2365 * If the l2hdr's b_daddr is equal to L2ARC_ADDR_UNSET, then
2374 IMPLY(l2hdr->b_daddr == L2ARC_ADDR_UNSET, HDR_L2_WRITING(hdr));
2384 if (l2hdr->b_daddr != L2ARC_ADDR_UNSET) {
2385 ARCSTAT_INCR(arcstat_l2_asize, -l2hdr->b_asize);
2389 -l2hdr->b_asize, 0, 0);
2392 l2hdr->b_asize, hdr);
6528 * not, otherwise, when this l2hdr is evicted we'll
6585 * size in l2hdr->b_asize. This routine tries to compress the data and
6587 * *) The buffer was incompressible. The original l2hdr contents were left
6596 * l2arc_release_cdata_buf on this l2hdr to free this temporary buffer.
6607 l2arc_buf_hdr_t *l2hdr = &hdr->b_l2hdr;
6610 ASSERT3S(l2hdr->b_compress, ==, ZIO_COMPRESS_OFF);
6613 len = l2hdr->b_asize;
6617 cdata, l2hdr->b_asize);
6622 l2hdr->b_compress = ZIO_COMPRESS_EMPTY;
6623 l2hdr->b_asize = 0;
6630 (size_t)1 << l2hdr->b_dev->l2ad_vdev->vdev_ashift);
6640 l2hdr->b_compress = ZIO_COMPRESS_LZ4;
6641 l2hdr->b_asize = csize;
6648 * l2hdr will be left unmodified.