|
|
@@ -18,6 +18,11 @@ struct vm_fault;
|
|
|
#define IOMAP_MAPPED 0x03 /* blocks allocated @blkno */
|
|
|
#define IOMAP_UNWRITTEN 0x04 /* blocks allocated @blkno in unwritten state */
|
|
|
|
|
|
+/*
|
|
|
+ * Flags for iomap mappings:
|
|
|
+ */
|
|
|
+#define IOMAP_F_MERGED 0x01 /* contains multiple blocks/extents */
|
|
|
+
|
|
|
/*
|
|
|
* Magic value for blkno:
|
|
|
*/
|
|
|
@@ -27,7 +32,8 @@ struct iomap {
|
|
|
sector_t blkno; /* 1st sector of mapping, 512b units */
|
|
|
loff_t offset; /* file offset of mapping, bytes */
|
|
|
u64 length; /* length of mapping, bytes */
|
|
|
- int type; /* type of mapping */
|
|
|
+ u16 type; /* type of mapping */
|
|
|
+ u16 flags; /* flags for mapping */
|
|
|
struct block_device *bdev; /* block device for I/O */
|
|
|
};
|
|
|
|