|
@@ -5454,7 +5454,7 @@ int ext4_collapse_range(struct inode *inode, loff_t offset, loff_t len)
|
|
ext4_discard_preallocations(inode);
|
|
ext4_discard_preallocations(inode);
|
|
|
|
|
|
ret = ext4_es_remove_extent(inode, punch_start,
|
|
ret = ext4_es_remove_extent(inode, punch_start,
|
|
- EXT_MAX_BLOCKS - punch_start - 1);
|
|
|
|
|
|
+ EXT_MAX_BLOCKS - punch_start);
|
|
if (ret) {
|
|
if (ret) {
|
|
up_write(&EXT4_I(inode)->i_data_sem);
|
|
up_write(&EXT4_I(inode)->i_data_sem);
|
|
goto out_stop;
|
|
goto out_stop;
|