aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/extents.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 3cc17aacc4c7..e5fafa7324c8 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -4848,19 +4848,6 @@ static long ext4_zero_range(struct file *file, loff_t offset,
4848 flags, mode); 4848 flags, mode);
4849 if (ret) 4849 if (ret)
4850 goto out_dio; 4850 goto out_dio;
4851 /*
4852 * Remove entire range from the extent status tree.
4853 *
4854 * ext4_es_remove_extent(inode, lblk, max_blocks) is
4855 * NOT sufficient. I'm not sure why this is the case,
4856 * but let's be conservative and remove the extent
4857 * status tree for the entire inode. There should be
4858 * no outstanding delalloc extents thanks to the
4859 * filemap_write_and_wait_range() call above.
4860 */
4861 ret = ext4_es_remove_extent(inode, 0, EXT_MAX_BLOCKS);
4862 if (ret)
4863 goto out_dio;
4864 } 4851 }
4865 if (!partial_begin && !partial_end) 4852 if (!partial_begin && !partial_end)
4866 goto out_dio; 4853 goto out_dio;