diff options
author | Christoph Hellwig <hch@lst.de> | 2016-06-20 19:38:45 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-06-20 19:38:45 -0400 |
commit | 8be9f564d25e7adc582f9f3689040ce5aa6f1f5b (patch) | |
tree | eac9cc4797502f733b15228a861c0ae7c152f64b /include/linux/iomap.h | |
parent | 9a286f0e52a2dac362caf78a458efa8f3c05b99e (diff) |
fs: iomap based fiemap implementation
Add a simple fiemap implementation based on iomap_ops, partially based
on a previous implementation from Bob Peterson <rpeterso@redhat.com>.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'include/linux/iomap.h')
-rw-r--r-- | include/linux/iomap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index d2f469ae899a..3267df461012 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
5 | 5 | ||
6 | struct fiemap_extent_info; | ||
6 | struct inode; | 7 | struct inode; |
7 | struct iov_iter; | 8 | struct iov_iter; |
8 | struct kiocb; | 9 | struct kiocb; |
@@ -63,5 +64,7 @@ int iomap_truncate_page(struct inode *inode, loff_t pos, bool *did_zero, | |||
63 | struct iomap_ops *ops); | 64 | struct iomap_ops *ops); |
64 | int iomap_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, | 65 | int iomap_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, |
65 | struct iomap_ops *ops); | 66 | struct iomap_ops *ops); |
67 | int iomap_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, | ||
68 | loff_t start, loff_t len, struct iomap_ops *ops); | ||
66 | 69 | ||
67 | #endif /* LINUX_IOMAP_H */ | 70 | #endif /* LINUX_IOMAP_H */ |