xfs: remove the XLOG_STATE_DO_CALLBACK state
XLOG_STATE_DO_CALLBACK is only entered through XLOG_STATE_DONE_SYNC and just used in a single debug check. Remove the flag and thus simplify the calling conventions for xlog_state_do_callback and xlog_state_iodone_process_iclog. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:

committed by
Darrick J. Wong

parent
1858bb0bec
commit
4b29ab04ab
@@ -45,7 +45,6 @@ enum xlog_iclog_state {
|
||||
XLOG_STATE_WANT_SYNC, /* Want to sync this iclog; no more writes */
|
||||
XLOG_STATE_SYNCING, /* This IC log is syncing */
|
||||
XLOG_STATE_DONE_SYNC, /* Done syncing to disk */
|
||||
XLOG_STATE_DO_CALLBACK, /* Process callback functions */
|
||||
XLOG_STATE_CALLBACK, /* Callback functions now */
|
||||
XLOG_STATE_DIRTY, /* Dirty IC log, not ready for ACTIVE status */
|
||||
XLOG_STATE_IOERROR, /* IO error happened in sync'ing log */
|
||||
|
Reference in New Issue
Block a user