diff options
Diffstat (limited to 'fs/xfs/xfs_buf_item.h')
-rw-r--r-- | fs/xfs/xfs_buf_item.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/fs/xfs/xfs_buf_item.h b/fs/xfs/xfs_buf_item.h index 5a41c348bb1c..217f34af00cb 100644 --- a/fs/xfs/xfs_buf_item.h +++ b/fs/xfs/xfs_buf_item.h | |||
@@ -70,22 +70,21 @@ typedef struct xfs_buf_log_format_t { | |||
70 | #define XFS_BLI_INODE_ALLOC_BUF 0x10 | 70 | #define XFS_BLI_INODE_ALLOC_BUF 0x10 |
71 | #define XFS_BLI_STALE_INODE 0x20 | 71 | #define XFS_BLI_STALE_INODE 0x20 |
72 | 72 | ||
73 | #define XFS_BLI_FLAGS \ | ||
74 | { XFS_BLI_HOLD, "HOLD" }, \ | ||
75 | { XFS_BLI_DIRTY, "DIRTY" }, \ | ||
76 | { XFS_BLI_STALE, "STALE" }, \ | ||
77 | { XFS_BLI_LOGGED, "LOGGED" }, \ | ||
78 | { XFS_BLI_INODE_ALLOC_BUF, "INODE_ALLOC" }, \ | ||
79 | { XFS_BLI_STALE_INODE, "STALE_INODE" } | ||
80 | |||
73 | 81 | ||
74 | #ifdef __KERNEL__ | 82 | #ifdef __KERNEL__ |
75 | 83 | ||
76 | struct xfs_buf; | 84 | struct xfs_buf; |
77 | struct ktrace; | ||
78 | struct xfs_mount; | 85 | struct xfs_mount; |
79 | struct xfs_buf_log_item; | 86 | struct xfs_buf_log_item; |
80 | 87 | ||
81 | #if defined(XFS_BLI_TRACE) | ||
82 | #define XFS_BLI_TRACE_SIZE 32 | ||
83 | |||
84 | void xfs_buf_item_trace(char *, struct xfs_buf_log_item *); | ||
85 | #else | ||
86 | #define xfs_buf_item_trace(id, bip) | ||
87 | #endif | ||
88 | |||
89 | /* | 88 | /* |
90 | * This is the in core log item structure used to track information | 89 | * This is the in core log item structure used to track information |
91 | * needed to log buffers. It tracks how many times the lock has been | 90 | * needed to log buffers. It tracks how many times the lock has been |
@@ -97,9 +96,6 @@ typedef struct xfs_buf_log_item { | |||
97 | unsigned int bli_flags; /* misc flags */ | 96 | unsigned int bli_flags; /* misc flags */ |
98 | unsigned int bli_recur; /* lock recursion count */ | 97 | unsigned int bli_recur; /* lock recursion count */ |
99 | atomic_t bli_refcount; /* cnt of tp refs */ | 98 | atomic_t bli_refcount; /* cnt of tp refs */ |
100 | #ifdef XFS_BLI_TRACE | ||
101 | struct ktrace *bli_trace; /* event trace buf */ | ||
102 | #endif | ||
103 | #ifdef XFS_TRANS_DEBUG | 99 | #ifdef XFS_TRANS_DEBUG |
104 | char *bli_orig; /* original buffer copy */ | 100 | char *bli_orig; /* original buffer copy */ |
105 | char *bli_logged; /* bytes logged (bitmap) */ | 101 | char *bli_logged; /* bytes logged (bitmap) */ |