aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/support/ktrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/support/ktrace.h')
-rw-r--r--fs/xfs/support/ktrace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/support/ktrace.h b/fs/xfs/support/ktrace.h
index 56e72b40a859..741d6947ca60 100644
--- a/fs/xfs/support/ktrace.h
+++ b/fs/xfs/support/ktrace.h
@@ -30,7 +30,8 @@ typedef struct ktrace_entry {
*/
typedef struct ktrace {
int kt_nentries; /* number of entries in trace buf */
- int kt_index; /* current index in entries */
+ atomic_t kt_index; /* current index in entries */
+ unsigned int kt_index_mask;
int kt_rollover;
ktrace_entry_t *kt_entries; /* buffer of entries */
} ktrace_t;