2 #define LINUX_IOMAP_H 1
4 #include <linux/types.h>
6 /* types of block ranges for multipage write mappings. */
7 #define IOMAP_HOLE 0x01 /* no blocks allocated, need allocation */
8 #define IOMAP_DELALLOC 0x02 /* delayed allocation blocks */
9 #define IOMAP_MAPPED 0x03 /* blocks allocated @blkno */
10 #define IOMAP_UNWRITTEN 0x04 /* blocks allocated @blkno in unwritten state */
12 #define IOMAP_NULL_BLOCK -1LL /* blkno is not valid */
15 sector_t blkno; /* first sector of mapping */
16 loff_t offset; /* file offset of mapping, bytes */
17 u64 length; /* length of mapping, bytes */
18 int type; /* type of mapping */
21 #endif /* LINUX_IOMAP_H */