aboutsummaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
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 @@
12struct super_block; 12struct super_block;
13struct file_system_type; 13struct file_system_type;
14struct iomap; 14struct iomap;
15struct iomap_ops;
15struct linux_binprm; 16struct linux_binprm;
16struct path; 17struct path;
17struct mount; 18struct mount;
@@ -164,3 +165,13 @@ extern struct dentry_operations ns_dentry_operations;
164extern int do_vfs_ioctl(struct file *file, unsigned int fd, unsigned int cmd, 165extern int do_vfs_ioctl(struct file *file, unsigned int fd, unsigned int cmd,
165 unsigned long arg); 166 unsigned long arg);
166extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 167extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
168
169/*
170 * iomap support:
171 */
172typedef loff_t (*iomap_actor_t)(struct inode *inode, loff_t pos, loff_t len,
173 void *data, struct iomap *iomap);
174
175loff_t iomap_apply(struct inode *inode, loff_t pos, loff_t length,
176 unsigned flags, struct iomap_ops *ops, void *data,
177 iomap_actor_t actor);