aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zil.c
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-06-15 14:30:37 -0400
committerBrian Behlendorf <[email protected]>2020-06-18 12:20:38 -0700
commit65c7cc49bfcf49d38fc84552a17d7e8a3268e58e (patch)
tree4740b896f8b5fc114ae9a96c6581776799ffeb3a /module/zfs/zil.c
parent1fa5c7af3314b4c556bd86e3a49e3497a5ed72ed (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/zil.c')
-rw-r--r--module/zfs/zil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/zfs/zil.c b/module/zfs/zil.c
index 50b3b1434..9dc20ba14 100644
--- a/module/zfs/zil.c
+++ b/module/zfs/zil.c
@@ -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;