summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log_priv.h
diff options
context:
space:
mode:
authorChristoph Hellwig2019-06-29 04:27:21 +0200
committerDarrick J. Wong2019-06-29 04:27:21 +0200
commit366fc4b898b3ca999b26d7c9fab92cb31ce4ad2b (patch)
tree42247cb29199110fcdad1f056e5169c385689d94 /fs/xfs/xfs_log_priv.h
parentxfs: reformat xlog_get_lowest_lsn (diff)
downloadkernel-qcow2-linux-366fc4b898b3ca999b26d7c9fab92cb31ce4ad2b.tar.gz
kernel-qcow2-linux-366fc4b898b3ca999b26d7c9fab92cb31ce4ad2b.tar.xz
kernel-qcow2-linux-366fc4b898b3ca999b26d7c9fab92cb31ce4ad2b.zip
xfs: remove XLOG_STATE_IOABORT
This value is the only flag in ic_state, which we otherwise use as a state. Switch it to a new debug-only field and also report and actual error in the buffer in the I/O completion path. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_log_priv.h')
-rw-r--r--fs/xfs/xfs_log_priv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log_priv.h b/fs/xfs/xfs_log_priv.h
index 78a2abeba895..ac4bca257609 100644
--- a/fs/xfs/xfs_log_priv.h
+++ b/fs/xfs/xfs_log_priv.h
@@ -50,7 +50,6 @@ static inline uint xlog_get_client_id(__be32 i)
#define XLOG_STATE_CALLBACK 0x0020 /* Callback functions now */
#define XLOG_STATE_DIRTY 0x0040 /* Dirty IC log, not ready for ACTIVE status*/
#define XLOG_STATE_IOERROR 0x0080 /* IO error happened in sync'ing log */
-#define XLOG_STATE_IOABORT 0x0100 /* force abort on I/O completion (debug) */
#define XLOG_STATE_ALL 0x7FFF /* All possible valid flags */
#define XLOG_STATE_NOTUSED 0x8000 /* This IC log not being used */
@@ -223,6 +222,9 @@ typedef struct xlog_in_core {
atomic_t ic_refcnt ____cacheline_aligned_in_smp;
xlog_in_core_2_t *ic_data;
#define ic_header ic_data->hic_header
+#ifdef DEBUG
+ bool ic_fail_crc : 1;
+#endif
} xlog_in_core_t;
/*