diff options
author | Arvind Sankar <[email protected]> | 2020-06-15 14:30:37 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-06-18 12:20:38 -0700 |
commit | 65c7cc49bfcf49d38fc84552a17d7e8a3268e58e (patch) | |
tree | 4740b896f8b5fc114ae9a96c6581776799ffeb3a /module/zfs/spa_misc.c | |
parent | 1fa5c7af3314b4c556bd86e3a49e3497a5ed72ed (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Arvind Sankar <[email protected]>
Closes #10470
Diffstat (limited to 'module/zfs/spa_misc.c')
-rw-r--r-- | module/zfs/spa_misc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/zfs/spa_misc.c b/module/zfs/spa_misc.c index 6a4307111..61cefa3dd 100644 --- a/module/zfs/spa_misc.c +++ b/module/zfs/spa_misc.c @@ -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; |