All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ext4: fix inline data / extent status truncation bug
@ 2021-08-19 14:49 Eric Whitney
  2021-08-19 14:49 ` [PATCH 1/2] ext4: remove extent cache entries when truncating inline data Eric Whitney
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eric Whitney @ 2021-08-19 14:49 UTC (permalink / raw)
  To: linux-ext4; +Cc: tytso, Eric Whitney

If ext4 converts an inline file to extents when applying writes under
delayed allocation that exceed the available inline storage, one or
more delayed allocated extents may be stored in the extent status cache
with an accompanying increase in the reserved block count.  If the file
is subsequently truncated before writeback occurs, that inode's delayed
allocated extents will not be removed from the extent status cache and
the reserved block count will not be reduced as required after
truncation. At minimum, unexpected ENOSPC conditions can occur.

Eric Whitney (2):
  ext4: remove extent cache entries when truncating inline data
  ext4: enforce buffer head state assertion in ext4_da_map_blocks

 fs/ext4/inline.c | 19 +++++++++++++++++++
 fs/ext4/inode.c  | 15 +++++++++------
 2 files changed, 28 insertions(+), 6 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-09 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-19 14:49 [PATCH 0/2] ext4: fix inline data / extent status truncation bug Eric Whitney
2021-08-19 14:49 ` [PATCH 1/2] ext4: remove extent cache entries when truncating inline data Eric Whitney
2021-08-19 14:49 ` [PATCH 2/2] ext4: enforce buffer head state assertion in ext4_da_map_blocks Eric Whitney
2021-09-09 14:55 ` [PATCH 0/2] ext4: fix inline data / extent status truncation bug Theodore Ts'o

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.