aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iomap.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-06-01 12:03:06 -0400
committerDarrick J. Wong <darrick.wong@oracle.com>2018-06-01 21:37:32 -0400
commit19319b53210c6b89c375cf395c08f156cccd83ea (patch)
treed0379f5b72aea5bbd5cf8d20738daa9aca93ff54 /include/linux/iomap.h
parentb3751e6ab45a3b92da1e4acd42ada7b6a4122f2b (diff)
iomap: inline data should be an iomap type, not a flag
Inline data is fundamentally different from our normal mapped case in that it doesn't even have a block address. So instead of having a flag for it it should be an entirely separate iomap range type. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'include/linux/iomap.h')
-rw-r--r--include/linux/iomap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h
index 4bd87294219a..8f7095fc514e 100644
--- a/include/linux/iomap.h
+++ b/include/linux/iomap.h
@@ -18,6 +18,7 @@ struct vm_fault;
18#define IOMAP_DELALLOC 0x02 /* delayed allocation blocks */ 18#define IOMAP_DELALLOC 0x02 /* delayed allocation blocks */
19#define IOMAP_MAPPED 0x03 /* blocks allocated at @addr */ 19#define IOMAP_MAPPED 0x03 /* blocks allocated at @addr */
20#define IOMAP_UNWRITTEN 0x04 /* blocks allocated at @addr in unwritten state */ 20#define IOMAP_UNWRITTEN 0x04 /* blocks allocated at @addr in unwritten state */
21#define IOMAP_INLINE 0x05 /* data inline in the inode */
21 22
22/* 23/*
23 * Flags for all iomap mappings: 24 * Flags for all iomap mappings:
@@ -34,7 +35,6 @@ struct vm_fault;
34 */ 35 */
35#define IOMAP_F_MERGED 0x10 /* contains multiple blocks/extents */ 36#define IOMAP_F_MERGED 0x10 /* contains multiple blocks/extents */
36#define IOMAP_F_SHARED 0x20 /* block shared with another file */ 37#define IOMAP_F_SHARED 0x20 /* block shared with another file */
37#define IOMAP_F_DATA_INLINE 0x40 /* data inline in the inode */
38 38
39/* 39/*
40 * Magic value for addr: 40 * Magic value for addr: