Re: [PATCH v2 2/2] ext4: Do not populate extents tree with outdated offsets while shifting extents

Theodore Ts'o
2017-01-07T21:27:51Z

On Fri, Jan 06, 2017 at 09:26:01PM +0100, Roman Pen wrote:
> Inside ext4_ext_shift_extents() function ext4_find_extent() is called
> without EXT4_EX_NOCACHE flag, which should prevent cache population.
>
> This leads to oudated offsets in the extents tree and wrong blocks
> afterwards.
>
> Patch fixes the problem providing EXT4_EX_NOCACHE flag for each
> ext4_find_extents() call inside ext4_ext_shift_extents function.
>
> Signed-off-by: Roman Pen <roman.penyaev@profitbricks.com>

Thanks, applied.

- Ted