Skip to content

Commit

Permalink
ext4, dax: add ext4_bmap to ext4_dax_aops
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Suggested-by: Jan Kara <[email protected]>
Cc: [email protected]
  • Loading branch information
toshikani authored and tytso committed Sep 16, 2018
1 parent fe18d64 commit 94dbb63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3951,6 +3951,7 @@ static const struct address_space_operations ext4_dax_aops = {
.writepages = ext4_dax_writepages,
.direct_IO = noop_direct_IO,
.set_page_dirty = noop_set_page_dirty,
.bmap = ext4_bmap,
.invalidatepage = noop_invalidatepage,
};

Expand Down

0 comments on commit 94dbb63

Please sign in to comment.