Skip to content

Commit 94dbb63

Browse files
toshikanitytso
authored andcommitted
ext4, dax: add ext4_bmap to ext4_dax_aops
Ext4 mount path calls .bmap to the journal inode. This currently works for the DAX mount case because ext4_iget() always set 'ext4_da_aops' to any regular files. In preparation to fix ext4_iget() to set 'ext4_dax_aops' for ext4 DAX files, add ext4_bmap() to 'ext4_dax_aops', since bmap works for DAX inodes. Fixes: 5f0663b ("ext4, dax: introduce ext4_dax_aops") Signed-off-by: Toshi Kani <toshi.kani@hpe.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Suggested-by: Jan Kara <jack@suse.cz> Cc: stable@vger.kernel.org
1 parent fe18d64 commit 94dbb63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/ext4/inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3951,6 +3951,7 @@ static const struct address_space_operations ext4_dax_aops = {
39513951
.writepages = ext4_dax_writepages,
39523952
.direct_IO = noop_direct_IO,
39533953
.set_page_dirty = noop_set_page_dirty,
3954+
.bmap = ext4_bmap,
39543955
.invalidatepage = noop_invalidatepage,
39553956
};
39563957

0 commit comments

Comments
 (0)