Re: [PATCH] ext4: convert inline data to extents when truncate exceeds inline size
From: Theodore Ts'o
Date: Thu Mar 26 2026 - 07:59:18 EST
On Sat, 07 Feb 2026 10:06:07 +0530, Deepanshu Kartikey wrote:
> Add a check in ext4_setattr() to convert files from inline data storage
> to extent-based storage when truncate() grows the file size beyond the
> inline capacity. This prevents the filesystem from entering an
> inconsistent state where the inline data flag is set but the file size
> exceeds what can be stored inline.
>
> Without this fix, the following sequence causes a kernel BUG_ON():
>
> [...]
Applied, thanks!
[1/1] ext4: convert inline data to extents when truncate exceeds inline size
commit: ea3ec364b624093c46426269a34cf7568af6d6cf
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>