• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/module/zfs/

Lines Matching defs:asize

3726 	uint64_t asize = vdev_psize_to_asize(dev->l2ad_vdev, psize);
3735 asize_s = asize;
3739 asize_s = -asize;
3794 uint64_t asize = vdev_psize_to_asize(dev->l2ad_vdev, psize);
3802 vdev_space_update(dev->l2ad_vdev, -asize, 0, 0);
4615 uint64_t asize = aggsum_value(&arc_size);
4634 target = MIN((int64_t)(asize - arc_c),
4676 asize = aggsum_value(&arc_size);
4687 target = asize - arc_c;
4791 uint64_t asize = aggsum_value(&arc_size);
4801 uint64_t c = MIN(arc_c, asize);
4814 if (asize > arc_c) {
6323 uint64_t asize;
6347 asize = vdev_psize_to_asize(vd, size);
6348 if (asize != size) {
6349 abd = abd_alloc_for_io(asize,
6357 addr + asize <= vd->vdev_psize -
6369 asize, abd,
8312 uint64_t asize =
8314 bytes_dropped += asize;
8315 ARCSTAT_INCR(arcstat_l2_log_blk_asize, -asize);
8317 zfs_refcount_remove_many(&dev->l2ad_lb_asize, asize,
8786 uint64_t asize = L2BLK_GET_PSIZE(
8797 vdev_space_update(vd, -asize, 0, 0);
8798 ARCSTAT_INCR(arcstat_l2_log_blk_asize, -asize);
8800 zfs_refcount_remove_many(&dev->l2ad_lb_asize, asize,
8910 * transformed as it is on disk in a new abd of asize bytes.
8913 l2arc_apply_transforms(spa_t *spa, arc_buf_hdr_t *hdr, uint64_t asize,
8930 HDR_ENCRYPTED(hdr) || HDR_SHARED_DATA(hdr) || psize != asize);
8931 ASSERT3U(psize, <=, asize);
8936 * shared buffer or to reallocate the buffer to match asize.
8938 if (HDR_HAS_RABD(hdr) && asize != psize) {
8939 ASSERT3U(asize, >=, psize);
8940 to_write = abd_alloc_for_io(asize, ismd);
8942 if (psize != asize)
8943 abd_zero_off(to_write, psize, asize - psize);
8950 to_write = abd_alloc_for_io(asize, ismd);
8952 if (size != asize)
8953 abd_zero_off(to_write, size, asize - size);
8958 cabd = abd_alloc_for_io(asize, ismd);
8959 tmp = abd_borrow_buf(cabd, asize);
8965 abd_return_buf(cabd, tmp, asize);
8969 if (size != asize)
8970 abd_zero_off(to_write, size, asize - size);
8974 if (psize < asize)
8975 bzero((char *)tmp + psize, asize - psize);
8977 abd_return_buf_copy(cabd, tmp, asize);
8983 eabd = abd_alloc_for_io(asize, ismd);
9006 if (psize != asize)
9007 abd_zero_off(eabd, psize, asize - psize);
9155 uint64_t asize = vdev_psize_to_asize(dev->l2ad_vdev,
9158 if ((write_asize + asize) > target_sz) {
9192 if (HDR_HAS_RABD(hdr) && psize == asize) {
9197 psize == asize) {
9203 ret = l2arc_apply_transforms(spa, hdr, asize,
9212 l2arc_free_abd_on_write(to_write, asize, type);
9256 hdr->b_l2hdr.b_daddr, asize, to_write,
9266 write_asize += asize;
9267 dev->l2ad_hand += asize;
9269 vdev_space_update(dev->l2ad_vdev, asize, 0, 0);
9275 * arcstat_l2_{size,asize} kstats are updated
9863 uint64_t asize = L2BLK_GET_PSIZE((&lbps[0])->lbp_prop);
9864 l2arc_log_blk_restore(dev, this_lb, asize);
9877 ARCSTAT_INCR(arcstat_l2_log_blk_asize, asize);
9879 zfs_refcount_add_many(&dev->l2ad_lb_asize, asize, lb_ptr_buf);
9882 vdev_space_update(vd, asize, 0, 0);
10086 uint64_t asize;
10128 asize = L2BLK_GET_PSIZE((this_lbp)->lbp_prop);
10129 fletcher_4_native(this_lb, asize, NULL, &cksum);
10145 abd = abd_alloc_for_io(asize, B_TRUE);
10146 abd_copy_from_buf_off(abd, this_lb, 0, asize);
10149 abd, this_lb, asize, sizeof (*this_lb), NULL)) != 0) {
10185 uint64_t size = 0, asize = 0;
10217 asize += vdev_psize_to_asize(dev->l2ad_vdev,
10225 * asize Aligned size of restored buffers in the L2ARC
10228 ARCSTAT_INCR(arcstat_l2_rebuild_asize, asize);
10231 ARCSTAT_F_AVG(arcstat_l2_data_to_meta_ratio, asize / lb_asize);
10245 uint64_t asize;
10259 asize = vdev_psize_to_asize(dev->l2ad_vdev,
10267 vdev_space_update(dev->l2ad_vdev, asize, 0, 0);
10296 vdev_space_update(dev->l2ad_vdev, asize, 0, 0);
10319 uint32_t asize;
10324 asize = L2BLK_GET_PSIZE((lbp)->lbp_prop);
10325 ASSERT(asize <= sizeof (l2arc_log_blk_phys_t));
10328 cb->l2rcb_abd = abd_get_from_buf(lb, asize);
10332 (void) zio_nowait(zio_read_phys(pio, vd, lbp->lbp_daddr, asize,
10404 uint64_t psize, asize;
10435 asize = vdev_psize_to_asize(dev->l2ad_vdev, psize);
10436 ASSERT(asize <= sizeof (*lb));
10452 (&l2dhdr->dh_start_lbps[0])->lbp_prop, asize);
10456 if (asize < sizeof (*lb)) {
10458 bzero(tmpbuf + psize, asize - psize);
10471 fletcher_4_native(tmpbuf, asize, NULL,
10480 asize, abd_buf->abd, ZIO_CHECKSUM_OFF, NULL, NULL,
10485 dev->l2ad_hand += asize;
10494 ARCSTAT_INCR(arcstat_l2_log_blk_asize, asize);
10496 zfs_refcount_add_many(&dev->l2ad_lb_asize, asize, lb_ptr_buf);
10499 vdev_space_update(dev->l2ad_vdev, asize, 0, 0);
10502 ARCSTAT_INCR(arcstat_l2_write_bytes, asize);
10504 ARCSTAT_F_AVG(arcstat_l2_log_blk_avg_asize, asize);
10506 dev->l2ad_log_blk_payload_asize / asize);
10522 uint64_t asize = L2BLK_GET_PSIZE((lbp)->lbp_prop);
10523 uint64_t end = lbp->lbp_daddr + asize - 1;
10554 asize > 0 && asize <= sizeof (l2arc_log_blk_phys_t) &&