summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorJan Kara2016-11-20 23:36:06 +0100
committerTheodore Ts'o2016-11-20 23:36:06 +0100
commit364443cbcfe70f927b6a0dc0d410b4d4318bc1ca (patch)
treef482d79f1f1d84467a76d8a8cc0197b4e5a02f56 /fs/ext4/ext4.h
parentext4: only set S_DAX if DAX is really supported (diff)
downloadkernel-qcow2-linux-364443cbcfe70f927b6a0dc0d410b4d4318bc1ca.tar.gz
kernel-qcow2-linux-364443cbcfe70f927b6a0dc0d410b4d4318bc1ca.tar.xz
kernel-qcow2-linux-364443cbcfe70f927b6a0dc0d410b4d4318bc1ca.zip
ext4: convert DAX reads to iomap infrastructure
Implement basic iomap_begin function that handles reading and use it for DAX reads. Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index bdf1e5ee8642..da82de650350 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -3266,6 +3266,8 @@ static inline bool ext4_aligned_io(struct inode *inode, loff_t off, loff_t len)
return IS_ALIGNED(off, blksize) && IS_ALIGNED(len, blksize);
}
+extern struct iomap_ops ext4_iomap_ops;
+
#endif /* __KERNEL__ */
#define EFSBADCRC EBADMSG /* Bad CRC detected */