]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/txg.c
Undo c89 workarounds to match with upstream
[mirror_zfs.git] / module / zfs / txg.c
index 8b1ec9c05808b4a44820cffb03db6c760982ac35..078839a3203bc74ec124f24dee994ca6c2f860ef 100644 (file)
  * now transition to the syncing state.
  */
 
-static void txg_sync_thread(void *dp);
-static void txg_quiesce_thread(void *dp);
+static void txg_sync_thread(void *arg);
+static void txg_quiesce_thread(void *arg);
 
 int zfs_txg_timeout = 5;       /* max seconds worth of delta per txg */
 
@@ -479,7 +479,7 @@ txg_wait_callbacks(dsl_pool_t *dp)
 static void
 txg_sync_thread(void *arg)
 {
-       dsl_pool_t *dp = (dsl_pool_t *)arg;
+       dsl_pool_t *dp = arg;
        spa_t *spa = dp->dp_spa;
        tx_state_t *tx = &dp->dp_tx;
        callb_cpr_t cpr;
@@ -564,7 +564,7 @@ txg_sync_thread(void *arg)
 static void
 txg_quiesce_thread(void *arg)
 {
-       dsl_pool_t *dp = (dsl_pool_t *)arg;
+       dsl_pool_t *dp = arg;
        tx_state_t *tx = &dp->dp_tx;
        callb_cpr_t cpr;
 
@@ -785,9 +785,7 @@ txg_list_empty(txg_list_t *tl, uint64_t txg)
 boolean_t
 txg_all_lists_empty(txg_list_t *tl)
 {
-       int i;
-
-       for (i = 0; i < TXG_SIZE; i++) {
+       for (int i = 0; i < TXG_SIZE; i++) {
                if (!txg_list_empty(tl, i)) {
                        return (B_FALSE);
                }