OSDN Git Service

ext4, dax: add ext4_bmap to ext4_dax_aops
authorToshi Kani <toshi.kani@hpe.com>
Sun, 16 Sep 2018 01:23:41 +0000 (21:23 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Sep 2018 09:56:02 +0000 (02:56 -0700)
commite2dd3371bfd1bb30163d0cac205aa212be4bdf36
tree9cf4dbac2e4db86f4b6d4ce4667932cd61881af7
parentd60e0a56ac37edda1a62a0a38e9c93dbf7752b1a
ext4, dax: add ext4_bmap to ext4_dax_aops

commit 94dbb63117e82253c9592816aa4465f0a9c94850 upstream.

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 <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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/inode.c