]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 16 Sep 2018 01:23:41 +0000 (21:23 -0400)
commit4d36dc7d193e7e8a7cc2f40c66866eb901a7e11f
treed618498415f594ec264454f09ae0a387f90aac55
parent82076ca9ad1ba589d8ddabc3cdf18a46f942ba0b
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: 9cfc944f2bb9 ("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
fs/ext4/inode.c