diff options
Diffstat (limited to 'fs/xfs/xfs_alloc.h')
-rw-r--r-- | fs/xfs/xfs_alloc.h | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/fs/xfs/xfs_alloc.h b/fs/xfs/xfs_alloc.h index e704caee10df..599bffa39784 100644 --- a/fs/xfs/xfs_alloc.h +++ b/fs/xfs/xfs_alloc.h | |||
@@ -37,6 +37,15 @@ typedef enum xfs_alloctype | |||
37 | XFS_ALLOCTYPE_THIS_BNO /* at exactly this block */ | 37 | XFS_ALLOCTYPE_THIS_BNO /* at exactly this block */ |
38 | } xfs_alloctype_t; | 38 | } xfs_alloctype_t; |
39 | 39 | ||
40 | #define XFS_ALLOC_TYPES \ | ||
41 | { XFS_ALLOCTYPE_ANY_AG, "ANY_AG" }, \ | ||
42 | { XFS_ALLOCTYPE_FIRST_AG, "FIRST_AG" }, \ | ||
43 | { XFS_ALLOCTYPE_START_AG, "START_AG" }, \ | ||
44 | { XFS_ALLOCTYPE_THIS_AG, "THIS_AG" }, \ | ||
45 | { XFS_ALLOCTYPE_START_BNO, "START_BNO" }, \ | ||
46 | { XFS_ALLOCTYPE_NEAR_BNO, "NEAR_BNO" }, \ | ||
47 | { XFS_ALLOCTYPE_THIS_BNO, "THIS_BNO" } | ||
48 | |||
40 | /* | 49 | /* |
41 | * Flags for xfs_alloc_fix_freelist. | 50 | * Flags for xfs_alloc_fix_freelist. |
42 | */ | 51 | */ |
@@ -109,24 +118,6 @@ xfs_alloc_longest_free_extent(struct xfs_mount *mp, | |||
109 | 118 | ||
110 | #ifdef __KERNEL__ | 119 | #ifdef __KERNEL__ |
111 | 120 | ||
112 | #if defined(XFS_ALLOC_TRACE) | ||
113 | /* | ||
114 | * Allocation tracing buffer size. | ||
115 | */ | ||
116 | #define XFS_ALLOC_TRACE_SIZE 4096 | ||
117 | extern ktrace_t *xfs_alloc_trace_buf; | ||
118 | |||
119 | /* | ||
120 | * Types for alloc tracing. | ||
121 | */ | ||
122 | #define XFS_ALLOC_KTRACE_ALLOC 1 | ||
123 | #define XFS_ALLOC_KTRACE_FREE 2 | ||
124 | #define XFS_ALLOC_KTRACE_MODAGF 3 | ||
125 | #define XFS_ALLOC_KTRACE_BUSY 4 | ||
126 | #define XFS_ALLOC_KTRACE_UNBUSY 5 | ||
127 | #define XFS_ALLOC_KTRACE_BUSYSEARCH 6 | ||
128 | #endif | ||
129 | |||
130 | void | 121 | void |
131 | xfs_alloc_mark_busy(xfs_trans_t *tp, | 122 | xfs_alloc_mark_busy(xfs_trans_t *tp, |
132 | xfs_agnumber_t agno, | 123 | xfs_agnumber_t agno, |