aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/xfs/xfs_buf_item.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-08-31 15:11:06 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-09-02 08:22:19 -0700
commit7bf7a193a90cadccaad21c5970435c665c40fe27 (patch)
tree8246e0d6e4e57723ed4e657d2a4744c3511fd5a7 /fs/xfs/xfs_buf_item.c
parentfsmap: fix documentation of FMR_OF_LAST (diff)
downloadwireguard-linux-7bf7a193a90cadccaad21c5970435c665c40fe27.tar.xz
wireguard-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_buf_item.c')
-rw-r--r--fs/xfs/xfs_buf_item.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c
index ef2c1375f092..e0a0af0946f2 100644
--- a/fs/xfs/xfs_buf_item.c
+++ b/fs/xfs/xfs_buf_item.c
@@ -570,7 +570,9 @@ xfs_buf_item_unlock(
bool aborted = !!(lip->li_flags & XFS_LI_ABORTED);
bool hold = !!(bip->bli_flags & XFS_BLI_HOLD);
bool dirty = !!(bip->bli_flags & XFS_BLI_DIRTY);
+#if defined(DEBUG) || defined(XFS_WARN)
bool ordered = !!(bip->bli_flags & XFS_BLI_ORDERED);
+#endif
/* Clear the buffer's association with this transaction. */
bp->b_transp = NULL;