Commit 9bff3132 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

xfs: reformat xlog_get_lowest_lsn

Reformat xlog_get_lowest_lsn to our usual style.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 4f62282a
...@@ -2639,27 +2639,23 @@ xlog_state_clean_log( ...@@ -2639,27 +2639,23 @@ xlog_state_clean_log(
STATIC xfs_lsn_t STATIC xfs_lsn_t
xlog_get_lowest_lsn( xlog_get_lowest_lsn(
struct xlog *log) struct xlog *log)
{ {
xlog_in_core_t *lsn_log; struct xlog_in_core *iclog = log->l_iclog;
xfs_lsn_t lowest_lsn, lsn; xfs_lsn_t lowest_lsn = 0, lsn;
lsn_log = log->l_iclog;
lowest_lsn = 0;
do { do {
if (!(lsn_log->ic_state & (XLOG_STATE_ACTIVE|XLOG_STATE_DIRTY))) { if (iclog->ic_state & (XLOG_STATE_ACTIVE | XLOG_STATE_DIRTY))
lsn = be64_to_cpu(lsn_log->ic_header.h_lsn); continue;
if ((lsn && !lowest_lsn) ||
(XFS_LSN_CMP(lsn, lowest_lsn) < 0)) { lsn = be64_to_cpu(iclog->ic_header.h_lsn);
if ((lsn && !lowest_lsn) || XFS_LSN_CMP(lsn, lowest_lsn) < 0)
lowest_lsn = lsn; lowest_lsn = lsn;
} } while ((iclog = iclog->ic_next) != log->l_iclog);
}
lsn_log = lsn_log->ic_next;
} while (lsn_log != log->l_iclog);
return lowest_lsn; return lowest_lsn;
} }
STATIC void STATIC void
xlog_state_do_callback( xlog_state_do_callback(
struct xlog *log, struct xlog *log,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment