summaryrefslogtreecommitdiffstats
path: root/fs/iomap.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-09-19 10:13:02 +1000
committerDave Chinner <david@fromorbit.com>2016-09-19 10:13:02 +1000
commite43c460dcd265431df7a5e481450ad9c0596c10c (patch)
tree2b68863bf6d156f977c9e48e5bb2b56883139922 /fs/iomap.c
parent5f4e5752a8a3a72c79514def2ad9fc7cd410ce2e (diff)
downloadlinux-e43c460dcd265431df7a5e481450ad9c0596c10c.tar.gz
linux-e43c460dcd265431df7a5e481450ad9c0596c10c.tar.bz2
linux-e43c460dcd265431df7a5e481450ad9c0596c10c.zip
iomap: add a flag to report shared extents
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/iomap.c')
-rw-r--r--fs/iomap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/iomap.c b/fs/iomap.c
index e9b3f991c2d8..ec411a6b9edc 100644
--- a/fs/iomap.c
+++ b/fs/iomap.c
@@ -512,6 +512,8 @@ static int iomap_to_fiemap(struct fiemap_extent_info *fi,
if (iomap->flags & IOMAP_F_MERGED)
flags |= FIEMAP_EXTENT_MERGED;
+ if (iomap->flags & IOMAP_F_SHARED)
+ flags |= FIEMAP_EXTENT_SHARED;
return fiemap_fill_next_extent(fi, iomap->offset,
iomap->blkno != IOMAP_NULL_BLOCK ? iomap->blkno << 9: 0,