File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ extern boolean_t txg_stalled(struct dsl_pool *dp);
137137
138138/* returns TRUE if someone is waiting for the next txg to sync */
139139extern boolean_t txg_sync_waiting (struct dsl_pool * dp );
140- extern uint64_t txg_cur_open (struct dsl_pool * dp );
141140
142141extern void txg_verify (spa_t * spa , uint64_t txg );
143142
Original file line number Diff line number Diff line change @@ -867,12 +867,6 @@ txg_verify(spa_t *spa, uint64_t txg)
867867}
868868#endif
869869
870- uint64_t
871- txg_cur_open (dsl_pool_t * dp )
872- {
873- return (dp -> dp_tx .tx_open_txg );
874- }
875-
876870/*
877871 * Per-txg object lists.
878872 */
Original file line number Diff line number Diff line change @@ -3318,9 +3318,8 @@ zio_write_gang_block(zio_t *pio, metaslab_class_t *mc)
33183318 } else if (any_failed && candidate > SPA_OLD_GANGBLOCKSIZE &&
33193319 spa_feature_is_enabled (spa , SPA_FEATURE_DYNAMIC_GANG_HEADER ) &&
33203320 !spa_feature_is_active (spa , SPA_FEATURE_DYNAMIC_GANG_HEADER )) {
3321- dmu_tx_t * tx =
3322- dmu_tx_create_assigned (spa -> spa_dsl_pool , MIN (txg + 1 ,
3323- txg_cur_open (spa -> spa_dsl_pool )));
3321+ dmu_tx_t * tx = dmu_tx_create_assigned (spa -> spa_dsl_pool ,
3322+ spa_syncing_txg (spa ) + 1 );
33243323 dsl_sync_task_nowait (spa -> spa_dsl_pool ,
33253324 zio_update_feature ,
33263325 (void * )SPA_FEATURE_DYNAMIC_GANG_HEADER , tx );
You can’t perform that action at this time.
0 commit comments