diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-04-28 08:28:55 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-05-19 10:58:17 -0400 |
commit | e513182d4d7ec8f1870ae368c549ef2838e2c105 (patch) | |
tree | 1dc543b7f798c4826684bf2a0a5d83bd363f246f /fs/xfs/xfs_iomap.h | |
parent | 8699bb0a480193e62d5ccb9c86e2c26b407090a8 (diff) |
xfs: report iomap_bn in block base
Report the iomap_bn field of struct xfs_iomap in terms of filesystem
blocks instead of in terms of bytes. Shift the byte conversions
into the caller, and replace the IOMAP_DELAY and IOMAP_HOLE flag
checks with checks for HOLESTARTBLOCK and DELAYSTARTBLOCK.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_iomap.h')
-rw-r--r-- | fs/xfs/xfs_iomap.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/xfs/xfs_iomap.h b/fs/xfs/xfs_iomap.h index db9299631ee4..d2f3b67d39f9 100644 --- a/fs/xfs/xfs_iomap.h +++ b/fs/xfs/xfs_iomap.h | |||
@@ -18,12 +18,8 @@ | |||
18 | #ifndef __XFS_IOMAP_H__ | 18 | #ifndef __XFS_IOMAP_H__ |
19 | #define __XFS_IOMAP_H__ | 19 | #define __XFS_IOMAP_H__ |
20 | 20 | ||
21 | #define IOMAP_DADDR_NULL ((xfs_daddr_t) (-1LL)) | ||
22 | |||
23 | |||
24 | typedef enum { /* iomap_flags values */ | 21 | typedef enum { /* iomap_flags values */ |
25 | IOMAP_READ = 0, /* mapping for a read */ | 22 | IOMAP_READ = 0, /* mapping for a read */ |
26 | IOMAP_HOLE = 0x02, /* mapping covers a hole */ | ||
27 | IOMAP_DELAY = 0x04, /* mapping covers delalloc region */ | 23 | IOMAP_DELAY = 0x04, /* mapping covers delalloc region */ |
28 | IOMAP_UNWRITTEN = 0x20, /* mapping covers allocated */ | 24 | IOMAP_UNWRITTEN = 0x20, /* mapping covers allocated */ |
29 | /* but uninitialized file data */ | 25 | /* but uninitialized file data */ |