Re: [PATCH v2 4/8] ext4: propagate flags to convert_initialized_extent()
From: Ojaswin Mujoo
Date: Fri Jan 16 2026 - 00:36:49 EST
On Thu, Jan 15, 2026 at 11:59:56AM +0100, Jan Kara wrote:
> On Wed 14-01-26 20:27:48, Ojaswin Mujoo wrote:
> > Currently, ext4_zero_range passes EXT4_EX_NOCACHE flag to avoid caching
> > extents however this is not respected by convert_initialized_extent().
> > Hence, modify it to accept flags from the caller and to pass the flags
> > on to other extent manipulation functions it calls. This makes
> > sure the NOCACHE flag is respected throughout the code path.
> >
> > Also, we no longer explicitly pass CONVERT_UNWRITTEN as the caller takes
> > care of this. Account this behavior in Kunit tests as well.
> >
> > Signed-off-by: Ojaswin Mujoo <ojaswin@xxxxxxxxxxxxx>
>
> I don't see any changes in tests here as the changelog states. Otherwise it
> looks good. Feel free to add:
>
> Reviewed-by: Jan Kara <jack@xxxxxxx>
>
> Honza
Oh right, I changed the design a bit but fogot to update the commit.
I'll do that, thanks!
Regards,
ojaswin