diff options
author | Jan Kara <jack@suse.com> | 2015-12-07 21:10:44 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-12-07 21:10:44 +0100 |
commit | ba5843f51d468644b094674c0317c9ab95632caa (patch) | |
tree | e2ab7e39a4eff12af5bc9f2b14dafc0f08731727 /fs/ext4/ext4.h | |
parent | ext4: implement allocation of pre-zeroed blocks (diff) | |
download | linux-ba5843f51d468644b094674c0317c9ab95632caa.tar.xz linux-ba5843f51d468644b094674c0317c9ab95632caa.zip |
ext4: use pre-zeroed blocks for DAX page faults
Make DAX fault path use pre-zeroed blocks to avoid races with extent
conversion and zeroing when two page faults to the same block happen.
Signed-off-by: Jan Kara <jack@suse.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index ae900b530d37..1e20fa94fcf6 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2452,8 +2452,8 @@ struct buffer_head *ext4_getblk(handle_t *, struct inode *, ext4_lblk_t, int); struct buffer_head *ext4_bread(handle_t *, struct inode *, ext4_lblk_t, int); int ext4_get_block_write(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create); -int ext4_get_block_dax(struct inode *inode, sector_t iblock, - struct buffer_head *bh_result, int create); +int ext4_dax_mmap_get_block(struct inode *inode, sector_t iblock, + struct buffer_head *bh_result, int create); int ext4_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create); int ext4_da_get_block_prep(struct inode *inode, sector_t iblock, |