diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2017-10-01 17:56:54 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-10-01 17:56:54 -0400 |
commit | 9ca250a5137f3df7ffac58b49660beadd5926ace (patch) | |
tree | 4680883fd9cc5a7d8a369d4537e87b33aadf8c4b /fs/iomap.c | |
parent | 19fe5f643f89f29c1a16bc474d91506b0e9a6232 (diff) |
iomap: Add IOMAP_F_DATA_INLINE flag
Add a new IOMAP_F_DATA_INLINE flag to indicate that a mapping is in a
disk area that contains data as well as metadata. In iomap_fiemap, map
this flag to FIEMAP_EXTENT_DATA_INLINE.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/iomap.c')
-rw-r--r-- | fs/iomap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/iomap.c b/fs/iomap.c index d25db039ee13..379eb9896093 100644 --- a/fs/iomap.c +++ b/fs/iomap.c @@ -510,6 +510,8 @@ static int iomap_to_fiemap(struct fiemap_extent_info *fi, flags |= FIEMAP_EXTENT_MERGED; if (iomap->flags & IOMAP_F_SHARED) flags |= FIEMAP_EXTENT_SHARED; + if (iomap->flags & IOMAP_F_DATA_INLINE) + flags |= FIEMAP_EXTENT_DATA_INLINE; return fiemap_fill_next_extent(fi, iomap->offset, iomap->addr != IOMAP_NULL_ADDR ? iomap->addr : 0, |