Lines Matching refs:VCBS
90 #define VCBS (1 << zfs_vdev_cache_bshift) /* 64KB */ macro
158 uint64_t offset = P2ALIGN(zio->io_offset, VCBS); in vdev_cache_allocate()
182 ve->ve_abd = abd_alloc_for_io(VCBS, B_TRUE); in vdev_cache_allocate()
193 uint64_t cache_phase = P2PHASE(zio->io_offset, VCBS); in vdev_cache_hit()
219 ASSERT3U(fio->io_size, ==, VCBS); in vdev_cache_fill()
255 uint64_t cache_offset = P2ALIGN(zio->io_offset, VCBS); in vdev_cache_read()
257 uint64_t cache_phase __maybe_unused = P2PHASE(zio->io_offset, VCBS); in vdev_cache_read()
270 if (P2BOUNDARY(zio->io_offset, zio->io_size, VCBS)) in vdev_cache_read()
273 ASSERT3U(cache_phase + zio->io_size, <=, VCBS); in vdev_cache_read()
312 ve->ve_abd, VCBS, ZIO_TYPE_READ, ZIO_PRIORITY_NOW, in vdev_cache_read()
336 uint64_t min_offset = P2ALIGN(io_start, VCBS); in vdev_cache_write()
337 uint64_t max_offset = P2ROUNDUP(io_end, VCBS); in vdev_cache_write()
352 uint64_t end = MIN(ve->ve_offset + VCBS, io_end); in vdev_cache_write()