mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Mark functions as static
Mark functions used only in the same translation unit as static. This only includes functions that do not have a prototype in a header file either. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Closes #10470
This commit is contained in:
committed by
Brian Behlendorf
parent
1fa5c7af33
commit
65c7cc49bf
+2
-2
@@ -1696,7 +1696,7 @@ arc_buf_try_copy_decompressed_data(arc_buf_t *buf)
|
||||
* which circumvent the regular disk->arc->l2arc path and instead come
|
||||
* into being in the reverse order, i.e. l2arc->arc.
|
||||
*/
|
||||
arc_buf_hdr_t *
|
||||
static arc_buf_hdr_t *
|
||||
arc_buf_alloc_l2only(size_t size, arc_buf_contents_t type, l2arc_dev_t *dev,
|
||||
dva_t dva, uint64_t daddr, int32_t psize, uint64_t birth,
|
||||
enum zio_compress compress, boolean_t protected, boolean_t prefetch)
|
||||
@@ -7016,7 +7016,7 @@ arc_kstat_update(kstat_t *ksp, int rw)
|
||||
* distributed between all sublists and uses this assumption when
|
||||
* deciding which sublist to evict from and how much to evict from it.
|
||||
*/
|
||||
unsigned int
|
||||
static unsigned int
|
||||
arc_state_multilist_index_func(multilist_t *ml, void *obj)
|
||||
{
|
||||
arc_buf_hdr_t *hdr = obj;
|
||||
|
||||
+1
-1
@@ -588,7 +588,7 @@ dbuf_is_metadata(dmu_buf_impl_t *db)
|
||||
* distributed between all sublists and uses this assumption when
|
||||
* deciding which sublist to evict from and how much to evict from it.
|
||||
*/
|
||||
unsigned int
|
||||
static unsigned int
|
||||
dbuf_cache_multilist_index_func(multilist_t *ml, void *obj)
|
||||
{
|
||||
dmu_buf_impl_t *db = obj;
|
||||
|
||||
@@ -61,7 +61,7 @@ dbuf_stats_hash_table_headers(char *buf, size_t size)
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
__dbuf_stats_hash_table_data(char *buf, size_t size, dmu_buf_impl_t *db)
|
||||
{
|
||||
arc_buf_info_t abi = { 0 };
|
||||
|
||||
+1
-1
@@ -151,7 +151,7 @@ const dmu_object_byteswap_info_t dmu_ot_byteswap[DMU_BSWAP_NUMFUNCS] = {
|
||||
{ zfs_acl_byteswap, "acl" }
|
||||
};
|
||||
|
||||
int
|
||||
static int
|
||||
dmu_buf_hold_noread_by_dnode(dnode_t *dn, uint64_t offset,
|
||||
void *tag, dmu_buf_t **dbp)
|
||||
{
|
||||
|
||||
@@ -392,7 +392,7 @@ dnode_hash(const objset_t *os, uint64_t obj)
|
||||
return (crc);
|
||||
}
|
||||
|
||||
unsigned int
|
||||
static unsigned int
|
||||
dnode_multilist_index_func(multilist_t *ml, void *obj)
|
||||
{
|
||||
dnode_t *dn = obj;
|
||||
|
||||
@@ -343,7 +343,7 @@ dsl_dir_get_encryption_root_ddobj(dsl_dir_t *dd, uint64_t *rddobj)
|
||||
DSL_CRYPTO_KEY_ROOT_DDOBJ, 8, 1, rddobj));
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
dsl_dir_get_encryption_version(dsl_dir_t *dd, uint64_t *version)
|
||||
{
|
||||
*version = 0;
|
||||
@@ -2304,7 +2304,7 @@ dsl_crypto_recv_raw_key_sync(dsl_dataset_t *ds, nvlist_t *nvl, dmu_tx_t *tx)
|
||||
iters, tx);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
dsl_crypto_recv_key_check(void *arg, dmu_tx_t *tx)
|
||||
{
|
||||
int ret;
|
||||
@@ -2345,7 +2345,7 @@ out:
|
||||
return (ret);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
dsl_crypto_recv_key_sync(void *arg, dmu_tx_t *tx)
|
||||
{
|
||||
dsl_crypto_recv_key_arg_t *dcrka = arg;
|
||||
|
||||
@@ -1684,7 +1684,7 @@ dsl_dir_set_quota(const char *ddname, zprop_source_t source, uint64_t quota)
|
||||
ZFS_SPACE_CHECK_EXTRA_RESERVED));
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
dsl_dir_set_reservation_check(void *arg, dmu_tx_t *tx)
|
||||
{
|
||||
dsl_dir_set_qr_arg_t *ddsqra = arg;
|
||||
|
||||
@@ -1158,7 +1158,7 @@ dsl_pool_clean_tmp_userrefs(dsl_pool_t *dp)
|
||||
/*
|
||||
* Create the pool-wide zap object for storing temporary snapshot holds.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
dsl_pool_user_hold_create_obj(dsl_pool_t *dp, dmu_tx_t *tx)
|
||||
{
|
||||
objset_t *mos = dp->dp_meta_objset;
|
||||
|
||||
@@ -1598,7 +1598,7 @@ dsl_scan_prefetch_dnode(dsl_scan_t *scn, dnode_phys_t *dnp,
|
||||
scan_prefetch_ctx_rele(spc, FTAG);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
dsl_scan_prefetch_cb(zio_t *zio, const zbookmark_phys_t *zb, const blkptr_t *bp,
|
||||
arc_buf_t *buf, void *private)
|
||||
{
|
||||
|
||||
@@ -1480,7 +1480,7 @@ metaslab_largest_allocatable(metaslab_t *msp)
|
||||
* Return the maximum contiguous segment within the unflushed frees of this
|
||||
* metaslab.
|
||||
*/
|
||||
uint64_t
|
||||
static uint64_t
|
||||
metaslab_largest_unflushed_free(metaslab_t *msp)
|
||||
{
|
||||
ASSERT(MUTEX_HELD(&msp->ms_lock));
|
||||
@@ -1810,7 +1810,7 @@ metaslab_ops_t *zfs_metaslab_ops = &metaslab_ndf_ops;
|
||||
/*
|
||||
* Wait for any in-progress metaslab loads to complete.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
metaslab_load_wait(metaslab_t *msp)
|
||||
{
|
||||
ASSERT(MUTEX_HELD(&msp->ms_lock));
|
||||
@@ -1824,7 +1824,7 @@ metaslab_load_wait(metaslab_t *msp)
|
||||
/*
|
||||
* Wait for any in-progress flushing to complete.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
metaslab_flush_wait(metaslab_t *msp)
|
||||
{
|
||||
ASSERT(MUTEX_HELD(&msp->ms_lock));
|
||||
@@ -3107,7 +3107,7 @@ metaslab_segment_weight(metaslab_t *msp)
|
||||
* allocation based on the index encoded in its value. For space-based
|
||||
* weights we rely on the entire weight (excluding the weight-type bit).
|
||||
*/
|
||||
boolean_t
|
||||
static boolean_t
|
||||
metaslab_should_allocate(metaslab_t *msp, uint64_t asize, boolean_t try_hard)
|
||||
{
|
||||
/*
|
||||
@@ -3376,7 +3376,7 @@ metaslab_passivate(metaslab_t *msp, uint64_t weight)
|
||||
* metaslab group. If we're in sync pass > 1, then we continue using this
|
||||
* metaslab so that we don't dirty more block and cause more sync passes.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
metaslab_segment_may_passivate(metaslab_t *msp)
|
||||
{
|
||||
spa_t *spa = msp->ms_group->mg_vd->vdev_spa;
|
||||
@@ -4650,7 +4650,7 @@ find_valid_metaslab(metaslab_group_t *mg, uint64_t activation_weight,
|
||||
return (msp);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
metaslab_active_mask_verify(metaslab_t *msp)
|
||||
{
|
||||
ASSERT(MUTEX_HELD(&msp->ms_lock));
|
||||
@@ -5360,7 +5360,7 @@ typedef struct remap_blkptr_cb_arg {
|
||||
void *rbca_cb_arg;
|
||||
} remap_blkptr_cb_arg_t;
|
||||
|
||||
void
|
||||
static void
|
||||
remap_blkptr_cb(uint64_t inner_offset, vdev_t *vd, uint64_t offset,
|
||||
uint64_t size, void *arg)
|
||||
{
|
||||
|
||||
+6
-6
@@ -268,7 +268,7 @@ layout_hash_compare(const void *arg1, const void *arg2)
|
||||
return (TREE_CMP(node1->lot_instance, node2->lot_instance));
|
||||
}
|
||||
|
||||
boolean_t
|
||||
static boolean_t
|
||||
sa_layout_equal(sa_lot_t *tbf, sa_attr_type_t *attrs, int count)
|
||||
{
|
||||
int i;
|
||||
@@ -318,7 +318,7 @@ sa_get_spill(sa_handle_t *hdl)
|
||||
*
|
||||
* Operates on bulk array, first failure will abort further processing
|
||||
*/
|
||||
int
|
||||
static int
|
||||
sa_attr_op(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count,
|
||||
sa_data_op_t data_op, dmu_tx_t *tx)
|
||||
{
|
||||
@@ -1156,7 +1156,7 @@ sa_tear_down(objset_t *os)
|
||||
os->os_sa = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
sa_build_idx_tab(void *hdr, void *attr_addr, sa_attr_type_t attr,
|
||||
uint16_t length, int length_idx, boolean_t var_length, void *userp)
|
||||
{
|
||||
@@ -1220,7 +1220,7 @@ sa_attr_iter(objset_t *os, sa_hdr_phys_t *hdr, dmu_object_type_t type,
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
static void
|
||||
sa_byteswap_cb(void *hdr, void *attr_addr, sa_attr_type_t attr,
|
||||
uint16_t length, int length_idx, boolean_t variable_length, void *userp)
|
||||
{
|
||||
@@ -1230,7 +1230,7 @@ sa_byteswap_cb(void *hdr, void *attr_addr, sa_attr_type_t attr,
|
||||
sa_bswap_table[sa->sa_attr_table[attr].sa_byteswap](attr_addr, length);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
sa_byteswap(sa_handle_t *hdl, sa_buf_type_t buftype)
|
||||
{
|
||||
sa_hdr_phys_t *sa_hdr_phys = SA_GET_HDR(hdl, buftype);
|
||||
@@ -1462,7 +1462,7 @@ sa_buf_rele(dmu_buf_t *db, void *tag)
|
||||
dmu_buf_rele(db, tag);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
sa_lookup_impl(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count)
|
||||
{
|
||||
ASSERT(hdl);
|
||||
|
||||
+6
-6
@@ -2264,7 +2264,7 @@ spa_load_verify_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp,
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
static int
|
||||
verify_dataset_name_len(dsl_pool_t *dp, dsl_dataset_t *ds, void *arg)
|
||||
{
|
||||
if (dsl_dataset_namelen(ds) >= ZFS_MAX_DATASET_NAME_LEN)
|
||||
@@ -2492,7 +2492,7 @@ livelist_delete_sync(void *arg, dmu_tx_t *tx)
|
||||
* the pool-wide livelist data.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
void
|
||||
static void
|
||||
spa_livelist_delete_cb(void *arg, zthr_t *z)
|
||||
{
|
||||
spa_t *spa = arg;
|
||||
@@ -2546,7 +2546,7 @@ spa_livelist_delete_cb(void *arg, zthr_t *z)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
spa_start_livelist_destroy_thread(spa_t *spa)
|
||||
{
|
||||
ASSERT3P(spa->spa_livelist_delete_zthr, ==, NULL);
|
||||
@@ -2652,7 +2652,7 @@ out:
|
||||
spa->spa_to_condense.syncing = B_FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
spa_livelist_condense_cb(void *arg, zthr_t *t)
|
||||
{
|
||||
while (zfs_livelist_condense_zthr_pause &&
|
||||
@@ -2747,7 +2747,7 @@ spa_livelist_condense_cb_check(void *arg, zthr_t *z)
|
||||
return (B_FALSE);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
spa_start_livelist_condensing_thread(spa_t *spa)
|
||||
{
|
||||
spa->spa_to_condense.ds = NULL;
|
||||
@@ -7733,7 +7733,7 @@ spa_vdev_resilver_done(spa_t *spa)
|
||||
/*
|
||||
* Update the stored path or FRU for this vdev.
|
||||
*/
|
||||
int
|
||||
static int
|
||||
spa_vdev_set_common(spa_t *spa, uint64_t guid, const char *value,
|
||||
boolean_t ispath)
|
||||
{
|
||||
|
||||
@@ -615,7 +615,7 @@ spa_deadman(void *arg)
|
||||
MSEC_TO_TICK(zfs_deadman_checktime_ms));
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
spa_log_sm_sort_by_txg(const void *va, const void *vb)
|
||||
{
|
||||
const spa_log_sm_t *a = va;
|
||||
@@ -944,7 +944,7 @@ spa_aux_compare(const void *a, const void *b)
|
||||
return (TREE_CMP(sa->aux_guid, sb->aux_guid));
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
spa_aux_add(vdev_t *vd, avl_tree_t *avl)
|
||||
{
|
||||
avl_index_t where;
|
||||
@@ -962,7 +962,7 @@ spa_aux_add(vdev_t *vd, avl_tree_t *avl)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
spa_aux_remove(vdev_t *vd, avl_tree_t *avl)
|
||||
{
|
||||
spa_aux_t search;
|
||||
@@ -982,7 +982,7 @@ spa_aux_remove(vdev_t *vd, avl_tree_t *avl)
|
||||
}
|
||||
}
|
||||
|
||||
boolean_t
|
||||
static boolean_t
|
||||
spa_aux_exists(uint64_t guid, uint64_t *pool, int *refcnt, avl_tree_t *avl)
|
||||
{
|
||||
spa_aux_t search, *found;
|
||||
@@ -1007,7 +1007,7 @@ spa_aux_exists(uint64_t guid, uint64_t *pool, int *refcnt, avl_tree_t *avl)
|
||||
return (found != NULL);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
spa_aux_activate(vdev_t *vd, avl_tree_t *avl)
|
||||
{
|
||||
spa_aux_t search, *found;
|
||||
|
||||
+1
-1
@@ -2857,7 +2857,7 @@ vdev_construct_zaps(vdev_t *vd, dmu_tx_t *tx)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
vdev_dtl_sync(vdev_t *vd, uint64_t txg)
|
||||
{
|
||||
spa_t *spa = vd->vdev_spa;
|
||||
|
||||
@@ -966,7 +966,7 @@ typedef struct remap_segment {
|
||||
list_node_t rs_node;
|
||||
} remap_segment_t;
|
||||
|
||||
remap_segment_t *
|
||||
static remap_segment_t *
|
||||
rs_alloc(vdev_t *vd, uint64_t offset, uint64_t asize, uint64_t split_offset)
|
||||
{
|
||||
remap_segment_t *rs = kmem_alloc(sizeof (remap_segment_t), KM_SLEEP);
|
||||
@@ -990,7 +990,7 @@ rs_alloc(vdev_t *vd, uint64_t offset, uint64_t asize, uint64_t split_offset)
|
||||
* Finally, since we are doing an allocation, it is up to the caller to
|
||||
* free the array allocated in this function.
|
||||
*/
|
||||
vdev_indirect_mapping_entry_phys_t *
|
||||
static vdev_indirect_mapping_entry_phys_t *
|
||||
vdev_indirect_mapping_duplicate_adjacent_entries(vdev_t *vd, uint64_t offset,
|
||||
uint64_t asize, uint64_t *copied_entries)
|
||||
{
|
||||
@@ -1858,7 +1858,6 @@ vdev_ops_t vdev_indirect_ops = {
|
||||
.vdev_op_leaf = B_FALSE /* leaf vdev */
|
||||
};
|
||||
|
||||
EXPORT_SYMBOL(rs_alloc);
|
||||
EXPORT_SYMBOL(spa_condense_fini);
|
||||
EXPORT_SYMBOL(spa_start_indirect_condensing_thread);
|
||||
EXPORT_SYMBOL(spa_condense_indirect_start_sync);
|
||||
|
||||
@@ -1588,7 +1588,7 @@ vdev_uberblock_sync(zio_t *zio, uint64_t *good_writes,
|
||||
}
|
||||
|
||||
/* Sync the uberblocks to all vdevs in svd[] */
|
||||
int
|
||||
static int
|
||||
vdev_uberblock_sync_list(vdev_t **svd, int svdcount, uberblock_t *ub, int flags)
|
||||
{
|
||||
spa_t *spa = svd[0]->vdev_spa;
|
||||
@@ -1705,7 +1705,7 @@ vdev_label_sync(zio_t *zio, uint64_t *good_writes,
|
||||
nvlist_free(label);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
vdev_label_sync_list(spa_t *spa, int l, uint64_t txg, int flags)
|
||||
{
|
||||
list_t *dl = &spa->spa_config_dirty_list;
|
||||
|
||||
@@ -212,7 +212,7 @@ int zfs_vdev_def_queue_depth = 32;
|
||||
*/
|
||||
int zfs_vdev_aggregate_trim = 0;
|
||||
|
||||
int
|
||||
static int
|
||||
vdev_queue_offset_compare(const void *x1, const void *x2)
|
||||
{
|
||||
const zio_t *z1 = (const zio_t *)x1;
|
||||
@@ -244,7 +244,7 @@ vdev_queue_type_tree(vdev_queue_t *vq, zio_type_t t)
|
||||
return (&vq->vq_trim_offset_tree);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
vdev_queue_timestamp_compare(const void *x1, const void *x2)
|
||||
{
|
||||
const zio_t *z1 = (const zio_t *)x1;
|
||||
|
||||
@@ -230,7 +230,7 @@ zap_name_alloc(zap_t *zap, const char *key, matchtype_t mt)
|
||||
return (zn);
|
||||
}
|
||||
|
||||
zap_name_t *
|
||||
static zap_name_t *
|
||||
zap_name_alloc_uint64(zap_t *zap, const uint64_t *key, int numints)
|
||||
{
|
||||
zap_name_t *zn = kmem_alloc(sizeof (zap_name_t), KM_SLEEP);
|
||||
|
||||
@@ -30,6 +30,9 @@
|
||||
#include <sys/zfs_sa.h>
|
||||
#include <sys/zfs_acl.h>
|
||||
|
||||
#ifndef _KERNEL
|
||||
static
|
||||
#endif
|
||||
void
|
||||
zfs_oldace_byteswap(ace_t *ace, int ace_cnt)
|
||||
{
|
||||
@@ -46,6 +49,9 @@ zfs_oldace_byteswap(ace_t *ace, int ace_cnt)
|
||||
/*
|
||||
* swap ace_t and ace_object_t
|
||||
*/
|
||||
#ifndef _KERNEL
|
||||
static
|
||||
#endif
|
||||
void
|
||||
zfs_ace_byteswap(void *buf, size_t size, boolean_t zfs_layout)
|
||||
{
|
||||
|
||||
@@ -735,13 +735,13 @@ zfs_secpolicy_send_new(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr)
|
||||
ZFS_DELEG_PERM_SEND, cr));
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
zfs_secpolicy_share(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr)
|
||||
{
|
||||
return (SET_ERROR(ENOTSUP));
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
zfs_secpolicy_smb_acl(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr)
|
||||
{
|
||||
return (SET_ERROR(ENOTSUP));
|
||||
@@ -6421,7 +6421,7 @@ zfs_ioc_send_new(const char *snapname, nvlist_t *innvl, nvlist_t *outnvl)
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
static int
|
||||
send_space_sum(objset_t *os, void *buf, int len, void *arg)
|
||||
{
|
||||
uint64_t *size = arg;
|
||||
@@ -6876,7 +6876,7 @@ zfs_ioctl_register_dataset_modify(zfs_ioc_t ioc, zfs_ioc_legacy_func_t *func,
|
||||
DATASET_NAME, B_TRUE, POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
zfs_ioctl_init(void)
|
||||
{
|
||||
zfs_ioctl_register("snapshot", ZFS_IOC_SNAPSHOT,
|
||||
@@ -7259,7 +7259,7 @@ zfs_check_input_nvpairs(nvlist_t *innvl, const zfs_ioc_vec_t *vec)
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
pool_status_check(const char *name, zfs_ioc_namecheck_t type,
|
||||
zfs_ioc_poolcheck_t check)
|
||||
{
|
||||
|
||||
+3
-3
@@ -602,7 +602,7 @@ zil_free_lwb(zilog_t *zilog, lwb_t *lwb)
|
||||
* Called when we create in-memory log transactions so that we know
|
||||
* to cleanup the itxs at the end of spa_sync().
|
||||
*/
|
||||
void
|
||||
static void
|
||||
zilog_dirty(zilog_t *zilog, uint64_t txg)
|
||||
{
|
||||
dsl_pool_t *dp = zilog->zl_dmu_pool;
|
||||
@@ -628,7 +628,7 @@ zilog_dirty(zilog_t *zilog, uint64_t txg)
|
||||
* dirtied (zil_itx_assign) or cleaned (zil_clean) while we check its current
|
||||
* state.
|
||||
*/
|
||||
boolean_t
|
||||
static boolean_t __maybe_unused
|
||||
zilog_is_dirty_in_txg(zilog_t *zilog, uint64_t txg)
|
||||
{
|
||||
dsl_pool_t *dp = zilog->zl_dmu_pool;
|
||||
@@ -642,7 +642,7 @@ zilog_is_dirty_in_txg(zilog_t *zilog, uint64_t txg)
|
||||
* Determine if the zil is dirty. The zil is considered dirty if it has
|
||||
* any pending itx records that have not been cleaned by zil_clean().
|
||||
*/
|
||||
boolean_t
|
||||
static boolean_t
|
||||
zilog_is_dirty(zilog_t *zilog)
|
||||
{
|
||||
dsl_pool_t *dp = zilog->zl_dmu_pool;
|
||||
|
||||
+1
-1
@@ -2083,7 +2083,7 @@ zio_execute(zio_t *zio)
|
||||
* enough to allow zio_execute() to be called recursively. A minimum
|
||||
* stack size of 16K is required to avoid needing to re-dispatch the zio.
|
||||
*/
|
||||
boolean_t
|
||||
static boolean_t
|
||||
zio_execute_stack_check(zio_t *zio)
|
||||
{
|
||||
#if !defined(HAVE_LARGE_STACKS)
|
||||
|
||||
@@ -100,7 +100,7 @@ abd_checksum_off(abd_t *abd, uint64_t size,
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
static void
|
||||
abd_fletcher_2_native(abd_t *abd, uint64_t size,
|
||||
const void *ctx_template, zio_cksum_t *zcp)
|
||||
{
|
||||
@@ -110,7 +110,7 @@ abd_fletcher_2_native(abd_t *abd, uint64_t size,
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
static void
|
||||
abd_fletcher_2_byteswap(abd_t *abd, uint64_t size,
|
||||
const void *ctx_template, zio_cksum_t *zcp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user