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
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user