@@ -463,14 +463,6 @@ xfs_log_reserve(
463
463
return error ;
464
464
}
465
465
466
-
467
- /*
468
- * NOTES:
469
- *
470
- * 1. currblock field gets updated at startup and after in-core logs
471
- * marked as with WANT_SYNC.
472
- */
473
-
474
466
static bool
475
467
__xlog_state_release_iclog (
476
468
struct xlog * log ,
@@ -1915,7 +1907,7 @@ xlog_dealloc_log(
1915
1907
log -> l_mp -> m_log = NULL ;
1916
1908
destroy_workqueue (log -> l_ioend_workqueue );
1917
1909
kmem_free (log );
1918
- } /* xlog_dealloc_log */
1910
+ }
1919
1911
1920
1912
/*
1921
1913
* Update counters atomically now that memcpy is done.
@@ -2458,14 +2450,6 @@ xlog_write(
2458
2450
return error ;
2459
2451
}
2460
2452
2461
-
2462
- /*****************************************************************************
2463
- *
2464
- * State Machine functions
2465
- *
2466
- *****************************************************************************
2467
- */
2468
-
2469
2453
static void
2470
2454
xlog_state_activate_iclog (
2471
2455
struct xlog_in_core * iclog ,
@@ -2826,7 +2810,7 @@ xlog_state_done_syncing(
2826
2810
*/
2827
2811
wake_up_all (& iclog -> ic_write_wait );
2828
2812
spin_unlock (& log -> l_icloglock );
2829
- xlog_state_do_callback (log ); /* also cleans log */
2813
+ xlog_state_do_callback (log );
2830
2814
}
2831
2815
2832
2816
/*
@@ -2946,13 +2930,14 @@ xlog_state_get_iclog_space(
2946
2930
2947
2931
* logoffsetp = log_offset ;
2948
2932
return 0 ;
2949
- } /* xlog_state_get_iclog_space */
2933
+ }
2950
2934
2951
2935
/*
2952
- * The first cnt-1 times through here we don't need to move the grant write head
2953
- * because the permanent reservation has reserved cnt times the unit amount.
2954
- * Release part of current permanent unit reservation and reset current
2955
- * reservation to be one units worth. Also move grant reservation head forward.
2936
+ * The first cnt-1 times a ticket goes through here we don't need to move the
2937
+ * grant write head because the permanent reservation has reserved cnt times the
2938
+ * unit amount. Release part of current permanent unit reservation and reset
2939
+ * current reservation to be one units worth. Also move grant reservation head
2940
+ * forward.
2956
2941
*/
2957
2942
void
2958
2943
xfs_log_ticket_regrant (
@@ -3034,12 +3019,8 @@ xfs_log_ticket_ungrant(
3034
3019
}
3035
3020
3036
3021
/*
3037
- * Mark the current iclog in the ring as WANT_SYNC and move the current iclog
3038
- * pointer to the next iclog in the ring.
3039
- *
3040
- * When called from xlog_state_get_iclog_space(), the exact size of the iclog
3041
- * has not yet been determined, all we know is that we have run out of space in
3042
- * the current iclog.
3022
+ * This routine will mark the current iclog in the ring as WANT_SYNC and move
3023
+ * the current iclog pointer to the next iclog in the ring.
3043
3024
*/
3044
3025
STATIC void
3045
3026
xlog_state_switch_iclogs (
@@ -3084,7 +3065,7 @@ xlog_state_switch_iclogs(
3084
3065
}
3085
3066
ASSERT (iclog == log -> l_iclog );
3086
3067
log -> l_iclog = iclog -> ic_next ;
3087
- } /* xlog_state_switch_iclogs */
3068
+ }
3088
3069
3089
3070
/*
3090
3071
* Write out all data in the in-core log as of this exact moment in time.
@@ -3291,13 +3272,6 @@ xfs_log_force_lsn(
3291
3272
return ret ;
3292
3273
}
3293
3274
3294
- /*****************************************************************************
3295
- *
3296
- * TICKET functions
3297
- *
3298
- *****************************************************************************
3299
- */
3300
-
3301
3275
/*
3302
3276
* Free a used ticket when its refcount falls to zero.
3303
3277
*/
@@ -3454,13 +3428,6 @@ xlog_ticket_alloc(
3454
3428
return tic ;
3455
3429
}
3456
3430
3457
-
3458
- /******************************************************************************
3459
- *
3460
- * Log debug routines
3461
- *
3462
- ******************************************************************************
3463
- */
3464
3431
#if defined(DEBUG )
3465
3432
/*
3466
3433
* Make sure that the destination ptr is within the valid data region of
@@ -3546,7 +3513,7 @@ xlog_verify_tail_lsn(
3546
3513
if (blocks < BTOBB (iclog -> ic_offset ) + 1 )
3547
3514
xfs_emerg (log -> l_mp , "%s: ran out of log space" , __func__ );
3548
3515
}
3549
- } /* xlog_verify_tail_lsn */
3516
+ }
3550
3517
3551
3518
/*
3552
3519
* Perform a number of checks on the iclog before writing to disk.
@@ -3649,7 +3616,7 @@ xlog_verify_iclog(
3649
3616
}
3650
3617
ptr += sizeof (xlog_op_header_t ) + op_len ;
3651
3618
}
3652
- } /* xlog_verify_iclog */
3619
+ }
3653
3620
#endif
3654
3621
3655
3622
/*
0 commit comments