diff options
author | Christoph Hellwig <hch@lst.de> | 2016-10-20 00:51:28 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-10-20 00:51:28 -0400 |
commit | d33fd776f992332be110f6ceca6dad60cb5d513f (patch) | |
tree | 9c1a91b8e168edf4ff798ce9d821a55ac76fabef /fs/iomap.c | |
parent | 5faaf4fa0a20d38edc4df57baf24ea35b7e91178 (diff) |
iomap: add IOMAP_REPORT
This allows the file system to tell a FIEMAP from a read operation, and thus
avoids the need to report flags that aren't actually used in the read path.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/iomap.c')
-rw-r--r-- | fs/iomap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/iomap.c b/fs/iomap.c index 013d1d36fbbf..a92204012e2d 100644 --- a/fs/iomap.c +++ b/fs/iomap.c | |||
@@ -561,7 +561,7 @@ int iomap_fiemap(struct inode *inode, struct fiemap_extent_info *fi, | |||
561 | } | 561 | } |
562 | 562 | ||
563 | while (len > 0) { | 563 | while (len > 0) { |
564 | ret = iomap_apply(inode, start, len, 0, ops, &ctx, | 564 | ret = iomap_apply(inode, start, len, IOMAP_REPORT, ops, &ctx, |
565 | iomap_fiemap_actor); | 565 | iomap_fiemap_actor); |
566 | /* inode with no (attribute) mapping will give ENOENT */ | 566 | /* inode with no (attribute) mapping will give ENOENT */ |
567 | if (ret == -ENOENT) | 567 | if (ret == -ENOENT) |