Re: [PATCH] ext4: defend against inline-to-block conversion race in write completion
From: Theodore Tso
Date: Thu Jul 23 2026 - 09:00:20 EST
On Sat, Jul 18, 2026 at 11:42:38AM -0500, Deepanshu Kartikey wrote:
> Replace BUG_ON(!ext4_has_inline_data(inode)) with defensive error handling
> in ext4_write_inline_data_end(). A file can be converted from inline to block
> storage by concurrent paths while a write completion is in flight.
Thanks for this proposed change. It's covered, as part of Aditya
Prakash Srivastava change, "ext4: use fsdata to track inline data
write state and fix race"[1] which is being tested in my tree.
[1] https://patch.msgid.link/20260703045414.1768-1-aditya.ansh182@xxxxxxxxx
- Ted