diff options
Diffstat (limited to 'fs/xfs/xfs_log_priv.h')
-rw-r--r-- | fs/xfs/xfs_log_priv.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/fs/xfs/xfs_log_priv.h b/fs/xfs/xfs_log_priv.h index 679c7c4926a2..d55662db7077 100644 --- a/fs/xfs/xfs_log_priv.h +++ b/fs/xfs/xfs_log_priv.h | |||
@@ -19,7 +19,6 @@ | |||
19 | #define __XFS_LOG_PRIV_H__ | 19 | #define __XFS_LOG_PRIV_H__ |
20 | 20 | ||
21 | struct xfs_buf; | 21 | struct xfs_buf; |
22 | struct ktrace; | ||
23 | struct log; | 22 | struct log; |
24 | struct xlog_ticket; | 23 | struct xlog_ticket; |
25 | struct xfs_buf_cancel; | 24 | struct xfs_buf_cancel; |
@@ -135,6 +134,12 @@ static inline uint xlog_get_client_id(__be32 i) | |||
135 | #define XLOG_TIC_INITED 0x1 /* has been initialized */ | 134 | #define XLOG_TIC_INITED 0x1 /* has been initialized */ |
136 | #define XLOG_TIC_PERM_RESERV 0x2 /* permanent reservation */ | 135 | #define XLOG_TIC_PERM_RESERV 0x2 /* permanent reservation */ |
137 | #define XLOG_TIC_IN_Q 0x4 | 136 | #define XLOG_TIC_IN_Q 0x4 |
137 | |||
138 | #define XLOG_TIC_FLAGS \ | ||
139 | { XLOG_TIC_INITED, "XLOG_TIC_INITED" }, \ | ||
140 | { XLOG_TIC_PERM_RESERV, "XLOG_TIC_PERM_RESERV" }, \ | ||
141 | { XLOG_TIC_IN_Q, "XLOG_TIC_IN_Q" } | ||
142 | |||
138 | #endif /* __KERNEL__ */ | 143 | #endif /* __KERNEL__ */ |
139 | 144 | ||
140 | #define XLOG_UNMOUNT_TYPE 0x556e /* Un for Unmount */ | 145 | #define XLOG_UNMOUNT_TYPE 0x556e /* Un for Unmount */ |
@@ -361,9 +366,6 @@ typedef struct xlog_in_core { | |||
361 | int ic_bwritecnt; | 366 | int ic_bwritecnt; |
362 | unsigned short ic_state; | 367 | unsigned short ic_state; |
363 | char *ic_datap; /* pointer to iclog data */ | 368 | char *ic_datap; /* pointer to iclog data */ |
364 | #ifdef XFS_LOG_TRACE | ||
365 | struct ktrace *ic_trace; | ||
366 | #endif | ||
367 | 369 | ||
368 | /* Callback structures need their own cacheline */ | 370 | /* Callback structures need their own cacheline */ |
369 | spinlock_t ic_callback_lock ____cacheline_aligned_in_smp; | 371 | spinlock_t ic_callback_lock ____cacheline_aligned_in_smp; |
@@ -429,10 +431,6 @@ typedef struct log { | |||
429 | int l_grant_write_cycle; | 431 | int l_grant_write_cycle; |
430 | int l_grant_write_bytes; | 432 | int l_grant_write_bytes; |
431 | 433 | ||
432 | #ifdef XFS_LOG_TRACE | ||
433 | struct ktrace *l_grant_trace; | ||
434 | #endif | ||
435 | |||
436 | /* The following field are used for debugging; need to hold icloglock */ | 434 | /* The following field are used for debugging; need to hold icloglock */ |
437 | #ifdef DEBUG | 435 | #ifdef DEBUG |
438 | char *l_iclog_bak[XLOG_MAX_ICLOGS]; | 436 | char *l_iclog_bak[XLOG_MAX_ICLOGS]; |
@@ -456,12 +454,6 @@ extern void xlog_put_bp(struct xfs_buf *); | |||
456 | 454 | ||
457 | extern kmem_zone_t *xfs_log_ticket_zone; | 455 | extern kmem_zone_t *xfs_log_ticket_zone; |
458 | 456 | ||
459 | /* iclog tracing */ | ||
460 | #define XLOG_TRACE_GRAB_FLUSH 1 | ||
461 | #define XLOG_TRACE_REL_FLUSH 2 | ||
462 | #define XLOG_TRACE_SLEEP_FLUSH 3 | ||
463 | #define XLOG_TRACE_WAKE_FLUSH 4 | ||
464 | |||
465 | /* | 457 | /* |
466 | * Unmount record type is used as a pseudo transaction type for the ticket. | 458 | * Unmount record type is used as a pseudo transaction type for the ticket. |
467 | * It's value must be outside the range of XFS_TRANS_* values. | 459 | * It's value must be outside the range of XFS_TRANS_* values. |