summaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-09-19 11:24:49 +1000
committerDave Chinner <david@fromorbit.com>2016-09-19 11:24:49 +1000
commitbefb503ca6e648cc5ed3e3a472d5b5887a60e0f2 (patch)
treee86742ee389168bb3a7e7e0b8a0fd0bb043f36f8 /fs/internal.h
parentecd50729f772f0b982ddbb76c16ee4bc8f495e17 (diff)
downloadlinux-befb503ca6e648cc5ed3e3a472d5b5887a60e0f2.tar.gz
linux-befb503ca6e648cc5ed3e3a472d5b5887a60e0f2.tar.bz2
linux-befb503ca6e648cc5ed3e3a472d5b5887a60e0f2.zip
iomap: expose iomap_apply outside iomap.c
This allows the DAX code to use it. 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>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h
index ba0737649d4a..859178692ce4 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -12,6 +12,7 @@
struct super_block;
struct file_system_type;
struct iomap;
+struct iomap_ops;
struct linux_binprm;
struct path;
struct mount;
@@ -164,3 +165,13 @@ extern struct dentry_operations ns_dentry_operations;
extern int do_vfs_ioctl(struct file *file, unsigned int fd, unsigned int cmd,
unsigned long arg);
extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
+
+/*
+ * iomap support:
+ */
+typedef loff_t (*iomap_actor_t)(struct inode *inode, loff_t pos, loff_t len,
+ void *data, struct iomap *iomap);
+
+loff_t iomap_apply(struct inode *inode, loff_t pos, loff_t length,
+ unsigned flags, struct iomap_ops *ops, void *data,
+ iomap_actor_t actor);