From: Toshi Kani Date: Sun, 16 Sep 2018 01:23:41 +0000 (-0400) Subject: ext4, dax: add ext4_bmap to ext4_dax_aops X-Git-Tag: v4.19~171^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94dbb63117e82253c9592816aa4465f0a9c94850;p=platform%2Fkernel%2Flinux-rpi.git 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: 5f0663bb4a64 ("ext4, dax: introduce ext4_dax_aops") Signed-off-by: Toshi Kani Signed-off-by: Theodore Ts'o Suggested-by: Jan Kara Cc: stable@vger.kernel.org --- diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 723058b..5be07f6 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -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, };