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
+9
-9
@@ -1584,7 +1584,7 @@ ztest_bt_bonus(dmu_buf_t *db)
|
||||
* helps ensure that all dnode traversal code properly skips the
|
||||
* interior regions of large dnodes.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
ztest_fill_unused_bonus(dmu_buf_t *db, void *end, uint64_t obj,
|
||||
objset_t *os, uint64_t gen)
|
||||
{
|
||||
@@ -1603,7 +1603,7 @@ ztest_fill_unused_bonus(dmu_buf_t *db, void *end, uint64_t obj,
|
||||
* Verify that the unused area of a bonus buffer is filled with the
|
||||
* expected tokens.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
ztest_verify_unused_bonus(dmu_buf_t *db, void *end, uint64_t obj,
|
||||
objset_t *os, uint64_t gen)
|
||||
{
|
||||
@@ -2259,7 +2259,7 @@ ztest_lr_alloc(size_t lrsize, char *name)
|
||||
return (lr);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
ztest_lr_free(void *lr, size_t lrsize, char *name)
|
||||
{
|
||||
size_t namesize = name ? strlen(name) + 1 : 0;
|
||||
@@ -3609,7 +3609,7 @@ ztest_device_removal(ztest_ds_t *zd, uint64_t id)
|
||||
/*
|
||||
* Callback function which expands the physical size of the vdev.
|
||||
*/
|
||||
vdev_t *
|
||||
static vdev_t *
|
||||
grow_vdev(vdev_t *vd, void *arg)
|
||||
{
|
||||
spa_t *spa __maybe_unused = vd->vdev_spa;
|
||||
@@ -3638,7 +3638,7 @@ grow_vdev(vdev_t *vd, void *arg)
|
||||
* Callback function which expands a given vdev by calling vdev_online().
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
vdev_t *
|
||||
static vdev_t *
|
||||
online_vdev(vdev_t *vd, void *arg)
|
||||
{
|
||||
spa_t *spa = vd->vdev_spa;
|
||||
@@ -3698,7 +3698,7 @@ online_vdev(vdev_t *vd, void *arg)
|
||||
* If a NULL callback is passed, then we just return back the first
|
||||
* leaf vdev we encounter.
|
||||
*/
|
||||
vdev_t *
|
||||
static vdev_t *
|
||||
vdev_walk_tree(vdev_t *vd, vdev_t *(*func)(vdev_t *, void *), void *arg)
|
||||
{
|
||||
uint_t c;
|
||||
@@ -4151,7 +4151,7 @@ ztest_dmu_snapshot_create_destroy(ztest_ds_t *zd, uint64_t id)
|
||||
/*
|
||||
* Cleanup non-standard snapshots and clones.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
ztest_dsl_dataset_cleanup(char *osname, uint64_t id)
|
||||
{
|
||||
char *snap1name;
|
||||
@@ -4605,7 +4605,7 @@ ztest_dmu_read_write(ztest_ds_t *zd, uint64_t id)
|
||||
umem_free(od, size);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
compare_and_update_pbbufs(uint64_t s, bufwad_t *packbuf, bufwad_t *bigbuf,
|
||||
uint64_t bigsize, uint64_t n, uint64_t chunksize, uint64_t txg)
|
||||
{
|
||||
@@ -7269,7 +7269,7 @@ ztest_run(ztest_shared_t *zs)
|
||||
mutex_destroy(&ztest_checkpoint_lock);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
print_time(hrtime_t t, char *timebuf)
|
||||
{
|
||||
hrtime_t s = t / NANOSEC;
|
||||
|
||||
Reference in New Issue
Block a user