aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_iomap.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-06-23 21:49:12 -0400
committerAlex Elder <aelder@sgi.com>2010-07-26 14:16:43 -0400
commit807cbbdb438d172b87b380eebc1f1c1a5a3549b2 (patch)
tree633d0d170c987800ddcdbe94aa91f65f8ee5686e /fs/xfs/xfs_iomap.h
parent64c86149410bc62d9ac27a0594b3402a2aca03d8 (diff)
xfs: do not use emums for flags used in tracing
The tracing code can't print flags defined as enums. Most flags that we want to print are defines as macros already, but move the few remaining ones over to make the trace output more useful. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_iomap.h')
-rw-r--r--fs/xfs/xfs_iomap.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/xfs/xfs_iomap.h b/fs/xfs/xfs_iomap.h
index 2cea2daf01ca..7748a430f50d 100644
--- a/fs/xfs/xfs_iomap.h
+++ b/fs/xfs/xfs_iomap.h
@@ -18,16 +18,16 @@
18#ifndef __XFS_IOMAP_H__ 18#ifndef __XFS_IOMAP_H__
19#define __XFS_IOMAP_H__ 19#define __XFS_IOMAP_H__
20 20
21typedef enum { 21/* base extent manipulation calls */
22 /* base extent manipulation calls */ 22#define BMAPI_READ (1 << 0) /* read extents */
23 BMAPI_READ = (1 << 0), /* read extents */ 23#define BMAPI_WRITE (1 << 1) /* create extents */
24 BMAPI_WRITE = (1 << 1), /* create extents */ 24#define BMAPI_ALLOCATE (1 << 2) /* delayed allocate to real extents */
25 BMAPI_ALLOCATE = (1 << 2), /* delayed allocate to real extents */ 25
26 /* modifiers */ 26/* modifiers */
27 BMAPI_IGNSTATE = (1 << 4), /* ignore unwritten state on read */ 27#define BMAPI_IGNSTATE (1 << 4) /* ignore unwritten state on read */
28 BMAPI_DIRECT = (1 << 5), /* direct instead of buffered write */ 28#define BMAPI_DIRECT (1 << 5) /* direct instead of buffered write */
29 BMAPI_TRYLOCK = (1 << 7), /* non-blocking request */ 29#define BMAPI_MMA (1 << 6) /* allocate for mmap write */
30} bmapi_flags_t; 30#define BMAPI_TRYLOCK (1 << 7) /* non-blocking request */
31 31
32#define BMAPI_FLAGS \ 32#define BMAPI_FLAGS \
33 { BMAPI_READ, "READ" }, \ 33 { BMAPI_READ, "READ" }, \