diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-08-31 15:11:06 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-09-02 08:22:19 -0700 |
commit | 7bf7a193a90cadccaad21c5970435c665c40fe27 (patch) | |
tree | 8246e0d6e4e57723ed4e657d2a4744c3511fd5a7 /fs/xfs/xfs_log_recover.c | |
parent | d897246df9fc0a5df97a784bf7b072be4a6ae479 (diff) | |
download | lwn-7bf7a193a90cadccaad21c5970435c665c40fe27.tar.gz lwn-7bf7a193a90cadccaad21c5970435c665c40fe27.zip |
xfs: fix compiler warnings
Fix up all the compiler warnings that have crept in.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index a36239980cf7..ee34899396b2 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c @@ -4827,12 +4827,16 @@ xlog_recover_process_intents( int error = 0; struct xfs_ail_cursor cur; struct xfs_ail *ailp; +#if defined(DEBUG) || defined(XFS_WARN) xfs_lsn_t last_lsn; +#endif ailp = log->l_ailp; spin_lock(&ailp->xa_lock); lip = xfs_trans_ail_cursor_first(ailp, &cur, 0); +#if defined(DEBUG) || defined(XFS_WARN) last_lsn = xlog_assign_lsn(log->l_curr_cycle, log->l_curr_block); +#endif while (lip != NULL) { /* * We're done when we see something other than an intent. |