diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-12-21 12:25:11 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-04-03 05:41:05 -0700 |
commit | fb094c90748fbeba1063927eeb751add147b35b9 (patch) | |
tree | 332b11f81eb36df6ca73a11d00b1f3f2a2928e8d /fs/ext2/ext2.h | |
parent | 5f0663bb4a64f588f0a2dd6d1be68d40f9af0086 (diff) | |
download | linux-stable-fb094c90748fbeba1063927eeb751add147b35b9.tar.gz linux-stable-fb094c90748fbeba1063927eeb751add147b35b9.tar.bz2 linux-stable-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.h | 1 |
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; |