summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log_recover.c
diff options
context:
space:
mode:
authorDarrick J. Wong2017-09-01 00:11:06 +0200
committerDarrick J. Wong2017-09-02 17:22:19 +0200
commit7bf7a193a90cadccaad21c5970435c665c40fe27 (patch)
tree8246e0d6e4e57723ed4e657d2a4744c3511fd5a7 /fs/xfs/xfs_log_recover.c
parentfsmap: fix documentation of FMR_OF_LAST (diff)
downloadkernel-qcow2-linux-7bf7a193a90cadccaad21c5970435c665c40fe27.tar.gz
kernel-qcow2-linux-7bf7a193a90cadccaad21c5970435c665c40fe27.tar.xz
kernel-qcow2-linux-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.c4
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.