diff options
author | Christoph Hellwig <hch@lst.de> | 2016-09-18 21:24:37 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-09-18 21:24:37 -0400 |
commit | ecd50729f772f0b982ddbb76c16ee4bc8f495e17 (patch) | |
tree | 731e4b75b21a1f1fff2c1c1718dde8f690ba8fae | |
parent | 51446f5ba44874db4d2a93a6eb61b133e5ec1b3e (diff) |
iomap: add IOMAP_F_NEW flag
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
-rw-r--r-- | fs/xfs/xfs_iomap.c | 1 | ||||
-rw-r--r-- | include/linux/iomap.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index f96c8ffce5f4..ac677d032e3a 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
@@ -1000,6 +1000,7 @@ xfs_file_iomap_begin( | |||
1000 | if (error) | 1000 | if (error) |
1001 | return error; | 1001 | return error; |
1002 | 1002 | ||
1003 | iomap->flags = IOMAP_F_NEW; | ||
1003 | trace_xfs_iomap_alloc(ip, offset, length, 0, &imap); | 1004 | trace_xfs_iomap_alloc(ip, offset, length, 0, &imap); |
1004 | } else { | 1005 | } else { |
1005 | ASSERT(nimaps); | 1006 | ASSERT(nimaps); |
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 3d70ece10313..14d7067f8b06 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h | |||
@@ -22,6 +22,7 @@ struct vm_fault; | |||
22 | * Flags for iomap mappings: | 22 | * Flags for iomap mappings: |
23 | */ | 23 | */ |
24 | #define IOMAP_F_MERGED 0x01 /* contains multiple blocks/extents */ | 24 | #define IOMAP_F_MERGED 0x01 /* contains multiple blocks/extents */ |
25 | #define IOMAP_F_NEW 0x02 /* blocks have been newly allocated */ | ||
25 | 26 | ||
26 | /* | 27 | /* |
27 | * Magic value for blkno: | 28 | * Magic value for blkno: |