Re: [PATCH RFC] ext4: add i_data_sem protection in ext4_destroy_inline_data_nolock()

From: Theodore Ts'o
Date: Mon Nov 17 2025 - 14:16:17 EST



On Tue, 04 Nov 2025 09:33:25 +0000, Alexey Nepomnyashih wrote:
> Fix a race between inline data destruction and block mapping.
>
> The function ext4_destroy_inline_data_nolock() changes the inode data
> layout by clearing EXT4_INODE_INLINE_DATA and setting EXT4_INODE_EXTENTS.
> At the same time, another thread may execute ext4_map_blocks(), which
> tests EXT4_INODE_EXTENTS to decide whether to call ext4_ext_map_blocks()
> or ext4_ind_map_blocks().
>
> [...]

Applied, thanks!

[1/1] ext4: add i_data_sem protection in ext4_destroy_inline_data_nolock()
commit: 103ce01cd045197461d654f62f1a30cabedbcad4

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>