|
@@ -740,7 +740,7 @@ static int ext2_get_blocks(struct inode *inode,
|
|
err = dax_clear_sectors(inode->i_sb->s_bdev,
|
|
err = dax_clear_sectors(inode->i_sb->s_bdev,
|
|
le32_to_cpu(chain[depth-1].key) <<
|
|
le32_to_cpu(chain[depth-1].key) <<
|
|
(inode->i_blkbits - 9),
|
|
(inode->i_blkbits - 9),
|
|
- 1 << inode->i_blkbits);
|
|
|
|
|
|
+ count << inode->i_blkbits);
|
|
if (err) {
|
|
if (err) {
|
|
mutex_unlock(&ei->truncate_mutex);
|
|
mutex_unlock(&ei->truncate_mutex);
|
|
goto cleanup;
|
|
goto cleanup;
|