summaryrefslogtreecommitdiffstats
path: root/fs/ext2/ext2.h
diff options
context:
space:
mode:
authorDan Williams2017-12-21 21:25:11 +0100
committerDan Williams2018-04-03 14:41:05 +0200
commitfb094c90748fbeba1063927eeb751add147b35b9 (patch)
tree332b11f81eb36df6ca73a11d00b1f3f2a2928e8d /fs/ext2/ext2.h
parentext4, dax: introduce ext4_dax_aops (diff)
downloadkernel-qcow2-linux-fb094c90748fbeba1063927eeb751add147b35b9.tar.gz
kernel-qcow2-linux-fb094c90748fbeba1063927eeb751add147b35b9.tar.xz
kernel-qcow2-linux-fb094c90748fbeba1063927eeb751add147b35b9.zip
ext2, dax: introduce ext2_dax_aops
In preparation for the dax implementation to start associating dax pages to inodes via page->mapping, we need to provide a 'struct address_space_operations' instance for dax. Otherwise, direct-I/O triggers incorrect page cache assumptions and warnings. Reviewed-by: Jan Kara <jack@suse.com> Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'fs/ext2/ext2.h')
-rw-r--r--fs/ext2/ext2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h
index 032295e1d386..cc40802ddfa8 100644
--- a/fs/ext2/ext2.h
+++ b/fs/ext2/ext2.h
@@ -814,6 +814,7 @@ extern const struct inode_operations ext2_file_inode_operations;
extern const struct file_operations ext2_file_operations;
/* inode.c */
+extern void ext2_set_file_ops(struct inode *inode);
extern const struct address_space_operations ext2_aops;
extern const struct address_space_operations ext2_nobh_aops;
extern const struct iomap_ops ext2_iomap_ops;