Lines Matching defs:asize

1731     dva_t dva, uint64_t daddr, int32_t psize, uint64_t asize, uint64_t birth,
1747 HDR_SET_L2SIZE(hdr, asize);
3537 uint64_t asize = HDR_GET_L2SIZE(hdr);
3544 ASSERT3U(asize, >=, psize);
3549 asize_s = asize;
3553 asize_s = -asize;
3615 uint64_t asize = HDR_GET_L2SIZE(hdr);
3616 vdev_space_update(dev->l2ad_vdev, -asize, 0, 0);
4312 uint64_t asize = aggsum_value(&arc_sums.arcstat_size);
4314 int64_t wt = t - (asize - ac);
4342 e = MIN((int64_t)(asize - ac), (int64_t)(mrum - w));
4346 asize -= bytes;
4350 e = MIN((int64_t)(asize - ac), (int64_t)(m - bytes - w));
4354 asize -= bytes;
4359 e = MIN((int64_t)(asize - ac), (int64_t)(mrud - w));
4363 asize -= bytes;
4366 e = asize - ac;
4533 uint64_t asize = aggsum_value(&arc_sums.arcstat_size);
4545 c = MIN(c, MAX(asize, arc_c_min));
4556 if (asize > arc_c) {
6101 uint64_t asize;
6125 asize = vdev_psize_to_asize(vd, size);
6126 if (asize != size) {
6127 abd = abd_alloc_for_io(asize,
6135 addr + asize <= vd->vdev_psize -
6147 asize, abd,
8546 uint64_t asize =
8548 bytes_dropped += asize;
8549 ARCSTAT_INCR(arcstat_l2_log_blk_asize, -asize);
8551 zfs_refcount_remove_many(&dev->l2ad_lb_asize, asize,
9011 uint64_t asize = L2BLK_GET_PSIZE(
9023 vdev_space_update(vd, -asize, 0, 0);
9024 ARCSTAT_INCR(arcstat_l2_log_blk_asize, -asize);
9026 zfs_refcount_remove_many(&dev->l2ad_lb_asize, asize,
9137 * transformed as it is on disk in a new abd of asize bytes.
9140 l2arc_apply_transforms(spa_t *spa, arc_buf_hdr_t *hdr, uint64_t asize,
9156 HDR_ENCRYPTED(hdr) || HDR_SHARED_DATA(hdr) || psize != asize);
9157 ASSERT3U(psize, <=, asize);
9162 * shared buffer or to reallocate the buffer to match asize.
9165 ASSERT3U(asize, >, psize);
9166 to_write = abd_alloc_for_io(asize, ismd);
9168 abd_zero_off(to_write, psize, asize - psize);
9175 to_write = abd_alloc_for_io(asize, ismd);
9177 if (asize > size)
9178 abd_zero_off(to_write, size, asize - size);
9183 cabd = abd_alloc_for_io(MAX(size, asize), ismd);
9189 * psize. Even if it fits into asize, it does not
9195 if (asize > csize)
9196 abd_zero_off(cabd, csize, asize - csize);
9201 eabd = abd_alloc_for_io(asize, ismd);
9224 if (psize != asize)
9225 abd_zero_off(eabd, psize, asize - psize);
9366 uint64_t asize = vdev_psize_to_asize(dev->l2ad_vdev,
9374 if (write_asize + asize +
9409 if (HDR_HAS_RABD(hdr) && psize == asize) {
9414 psize == asize) {
9420 ret = l2arc_apply_transforms(spa, hdr, asize,
9429 l2arc_free_abd_on_write(to_write, asize, type);
9437 /* l2arc_hdr_arcstats_update() expects a valid asize */
9438 HDR_SET_L2SIZE(hdr, asize);
9445 vdev_space_update(dev->l2ad_vdev, asize, 0, 0);
9475 dev->l2ad_hand, asize, to_write,
9485 write_asize += asize;
9486 dev->l2ad_hand += asize;
10203 uint64_t asize = L2BLK_GET_PSIZE((&lbps[0])->lbp_prop);
10204 l2arc_log_blk_restore(dev, this_lb, asize);
10217 ARCSTAT_INCR(arcstat_l2_log_blk_asize, asize);
10219 zfs_refcount_add_many(&dev->l2ad_lb_asize, asize, lb_ptr_buf);
10222 vdev_space_update(vd, asize, 0, 0);
10424 uint64_t asize;
10467 asize = L2BLK_GET_PSIZE((this_lbp)->lbp_prop);
10468 fletcher_4_native(this_lb, asize, NULL, &cksum);
10486 abd_t *abd = abd_alloc_linear(asize, B_TRUE);
10487 abd_copy_from_buf_off(abd, this_lb, 0, asize);
10492 abd, &dabd, asize, sizeof (*this_lb), NULL);
10530 uint64_t size = 0, asize = 0;
10562 asize += vdev_psize_to_asize(dev->l2ad_vdev,
10570 * asize Aligned size of restored buffers in the L2ARC
10573 ARCSTAT_INCR(arcstat_l2_rebuild_asize, asize);
10576 ARCSTAT_F_AVG(arcstat_l2_data_to_meta_ratio, asize / lb_asize);
10590 uint64_t asize = vdev_psize_to_asize(dev->l2ad_vdev,
10600 L2BLK_GET_PSIZE((le)->le_prop), asize, le->le_birth,
10611 vdev_space_update(dev->l2ad_vdev, asize, 0, 0);
10634 /* l2arc_hdr_arcstats_update() expects a valid asize */
10635 HDR_SET_L2SIZE(exists, asize);
10642 vdev_space_update(dev->l2ad_vdev, asize, 0, 0);
10665 uint32_t asize;
10670 asize = L2BLK_GET_PSIZE((lbp)->lbp_prop);
10671 ASSERT(asize <= sizeof (l2arc_log_blk_phys_t));
10674 cb->l2rcb_abd = abd_get_from_buf(lb, asize);
10677 (void) zio_nowait(zio_read_phys(pio, vd, lbp->lbp_daddr, asize,
10750 uint64_t psize, asize;
10783 asize = vdev_psize_to_asize(dev->l2ad_vdev, psize);
10784 ASSERT(asize <= sizeof (*lb));
10799 (&l2dhdr->dh_start_lbps[0])->lbp_prop, asize);
10803 if (asize < sizeof (*lb)) {
10805 abd_zero_off(abd, psize, asize - psize);
10818 abd_fletcher_4_native(abd, asize, NULL,
10826 asize, abd_buf->abd, ZIO_CHECKSUM_OFF, NULL, NULL,
10831 dev->l2ad_hand += asize;
10832 vdev_space_update(dev->l2ad_vdev, asize, 0, 0);
10842 ARCSTAT_INCR(arcstat_l2_log_blk_asize, asize);
10844 zfs_refcount_add_many(&dev->l2ad_lb_asize, asize, lb_ptr_buf);
10849 ARCSTAT_INCR(arcstat_l2_write_bytes, asize);
10851 ARCSTAT_F_AVG(arcstat_l2_log_blk_avg_asize, asize);
10853 dev->l2ad_log_blk_payload_asize / asize);
10860 return (asize);
10871 uint64_t asize = L2BLK_GET_PSIZE((lbp)->lbp_prop);
10872 uint64_t end = lbp->lbp_daddr + asize - 1;
10903 asize > 0 && asize <= sizeof (l2arc_log_blk_phys_t) &&