diff options
author | Christoph Hellwig <hch@infradead.org> | 2009-11-24 19:00:19 -0500 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2009-12-15 00:08:15 -0500 |
commit | 7574aa92f9b4952c458024e1fa51f20fed65ba07 (patch) | |
tree | 9f27ed8e5ec46de258b31ecf6c650c000b80a6da /fs/xfs/xfs_bmap.h | |
parent | 3ea6b3d0e6d0ffd91c0f8cadeb69b7133c038b32 (diff) |
xfs: cleanup bmap extent state macros
Cleanup the extent state macros in the bmap code to use one common set of
flags that we can pass to the tracing code later and remove a lot of the
macro obsfucation.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_bmap.h')
-rw-r--r-- | fs/xfs/xfs_bmap.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/xfs/xfs_bmap.h b/fs/xfs/xfs_bmap.h index 56f62d2edc35..f1ae5a1519c3 100644 --- a/fs/xfs/xfs_bmap.h +++ b/fs/xfs/xfs_bmap.h | |||
@@ -135,6 +135,18 @@ typedef struct xfs_bmalloca { | |||
135 | char conv; /* overwriting unwritten extents */ | 135 | char conv; /* overwriting unwritten extents */ |
136 | } xfs_bmalloca_t; | 136 | } xfs_bmalloca_t; |
137 | 137 | ||
138 | /* | ||
139 | * Flags for xfs_bmap_add_extent*. | ||
140 | */ | ||
141 | #define BMAP_LEFT_CONTIG (1 << 0) | ||
142 | #define BMAP_RIGHT_CONTIG (1 << 1) | ||
143 | #define BMAP_LEFT_FILLING (1 << 2) | ||
144 | #define BMAP_RIGHT_FILLING (1 << 3) | ||
145 | #define BMAP_LEFT_DELAY (1 << 4) | ||
146 | #define BMAP_RIGHT_DELAY (1 << 5) | ||
147 | #define BMAP_LEFT_VALID (1 << 6) | ||
148 | #define BMAP_RIGHT_VALID (1 << 7) | ||
149 | |||
138 | #if defined(__KERNEL__) && defined(XFS_BMAP_TRACE) | 150 | #if defined(__KERNEL__) && defined(XFS_BMAP_TRACE) |
139 | /* | 151 | /* |
140 | * Trace operations for bmap extent tracing | 152 | * Trace operations for bmap extent tracing |