Re: [PATCH v3 4/6] dax: give DAX clearing code correct bdev

2016-02-17 Thread Jan Kara
On Tue 16-02-16 20:34:17, Ross Zwisler wrote: > dax_clear_blocks() needs a valid struct block_device and previously it was > using inode->i_sb->s_bdev in all cases. This is correct for normal inodes > on mounted ext2, ext4 and XFS filesystems, but is incorrect for DAX raw > block devices and for X

[PATCH v3 4/6] dax: give DAX clearing code correct bdev

2016-02-16 Thread Ross Zwisler
dax_clear_blocks() needs a valid struct block_device and previously it was using inode->i_sb->s_bdev in all cases. This is correct for normal inodes on mounted ext2, ext4 and XFS filesystems, but is incorrect for DAX raw block devices and for XFS real-time devices. Instead, rename dax_clear_block