• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/

Lines Matching defs:spa

263 #include <sys/spa.h>
606 * not from the spa we're trying to evict from.
1415 #define BUF_HASH_INDEX(spa, dva, birth) \
1416 (buf_hash(spa, dva, birth) & buf_hash_table.ht_mask)
1528 spa_t *l2ad_spa; /* spa */
1614 buf_hash(uint64_t spa, const dva_t *dva, uint64_t birth)
1616 return (cityhash4(spa, dva->dva_word[0], dva->dva_word[1], birth));
1623 #define HDR_EQUAL(spa, dva, birth, hdr) \
1626 ((hdr)->b_birth == birth) && ((hdr)->b_spa == spa)
1637 buf_hash_find(uint64_t spa, const blkptr_t *bp, kmutex_t **lockp)
1641 uint64_t idx = BUF_HASH_INDEX(spa, dva, birth);
1648 if (HDR_EQUAL(spa, dva, birth, hdr)) {
3073 arc_loan_buf(spa_t *spa, boolean_t is_metadata, int size)
3075 arc_buf_t *buf = arc_alloc_buf(spa, arc_onloan_tag,
3084 arc_loan_compressed_buf(spa_t *spa, uint64_t psize, uint64_t lsize,
3087 arc_buf_t *buf = arc_alloc_compressed_buf(spa, arc_onloan_tag,
3411 arc_hdr_alloc(uint64_t spa, int32_t psize, int32_t lsize,
3424 hdr->b_spa = spa;
3559 arc_alloc_buf(spa_t *spa, void *tag, arc_buf_contents_t type, int32_t size)
3561 arc_buf_hdr_t *hdr = arc_hdr_alloc(spa_load_guid(spa), size, size,
3577 arc_alloc_compressed_buf(spa_t *spa, void *tag, uint64_t psize, uint64_t lsize,
3585 arc_buf_hdr_t *hdr = arc_hdr_alloc(spa_load_guid(spa), psize, lsize,
3849 uint64_t spa, int64_t bytes)
3893 /* we're only interested in evicting buffers of a certain spa */
3894 if (spa != 0 && hdr->b_spa != spa) {
3973 arc_evict_state(arc_state_t *state, uint64_t spa, int64_t bytes,
4047 markers[sublist_idx], spa, bytes_remaining);
4109 arc_flush_state(arc_state_t *state, uint64_t spa, arc_buf_contents_t type,
4115 evicted += arc_evict_state(state, spa, ARC_EVICT_ALL, type);
4177 * restricting eviction to the spa and type given. This function
4184 arc_adjust_impl(arc_state_t *state, uint64_t spa, int64_t bytes,
4192 return (arc_evict_state(state, spa, delta, type));
4578 arc_flush(spa_t *spa, boolean_t retry)
4583 * If retry is B_TRUE, a spa must not be specified since we have
4584 * no good way to determine if all of a spa's buffers have been
4587 ASSERT(!retry || spa == 0);
4589 if (spa != NULL)
4590 guid = spa_load_guid(spa);
5753 * on to the spa with a substitute callback function, so that the
5766 arc_read(zio_t *pio, spa_t *spa, const blkptr_t *bp, arc_read_done_func_t *done,
5773 uint64_t guid = spa_load_guid(spa);
5831 spa, NULL, NULL, NULL, zio_flags);
5911 hdr = arc_hdr_alloc(spa_load_guid(spa), psize, lsize,
6000 !spa_config_tryenter(spa, SCL_L2ARC, vd, RW_READER))
6123 spa_config_exit(spa, SCL_L2ARC, vd);
6127 spa_config_exit(spa, SCL_L2ARC, vd);
6135 rzio = zio_read(pio, spa, bp, hdr->b_l1hdr.b_pabd, size,
6192 arc_freed(spa_t *spa, const blkptr_t *bp)
6196 uint64_t guid = spa_load_guid(spa);
6324 uint64_t spa = hdr->b_spa;
6412 nhdr = arc_hdr_alloc(spa, psize, lsize, compress, type);
6669 arc_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, arc_buf_t *buf,
6729 zio = zio_write(pio, spa, txg, bp,
6740 arc_memory_throttle(spa_t *spa, uint64_t reserve, uint64_t txg)
6752 if (txg > spa->spa_lowmem_last_txg) {
6753 spa->spa_lowmem_last_txg = txg;
6754 spa->spa_lowmem_page_load = 0;
6762 if (spa->spa_lowmem_page_load >
6766 atomic_add_64(&spa->spa_lowmem_page_load, reserve / 8);
6768 } else if (spa->spa_lowmem_page_load > 0 && arc_reclaim_needed()) {
6773 spa->spa_lowmem_page_load = 0;
6786 arc_tempreserve_space(spa_t *spa, uint64_t reserve, uint64_t txg)
6815 error = arc_memory_throttle(spa, reserve, txg);
6836 uint64_t spa_dirty_anon = spa_dirty_data(spa);
7549 * 1. belongs to a different spa.
7622 * If a device is returned, this also returns holding the spa config lock.
7632 * both locks will be dropped and a spa config lock held instead.
8089 l2arc_write_buffers(spa_t *spa, l2arc_dev_t *dev, uint64_t target_sz)
8096 uint64_t guid = spa_load_guid(spa);
8204 pio = zio_root(spa, l2arc_write_done, cb,
8315 spa_t *spa;
8343 * doing so the next spa to feed from: dev->l2ad_spa. This
8347 * If a device is returned, its spa's config lock is also
8354 spa = dev->l2ad_spa;
8355 ASSERT3P(spa, !=, NULL);
8361 if (!spa_writeable(spa)) {
8363 spa_config_exit(spa, SCL_L2ARC, dev);
8372 spa_config_exit(spa, SCL_L2ARC, dev);
8388 wrote = l2arc_write_buffers(spa, dev, size);
8394 spa_config_exit(spa, SCL_L2ARC, dev);
8420 * Add a vdev for use by the L2ARC. By this point the spa has already
8424 l2arc_add_vdev(spa_t *spa, vdev_t *vd)
8436 adddev->l2ad_spa = spa;