Skip to content

ext4: Fix races between writeback and truncate

Jan Kara linux-ext4 1 version Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 7 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4ext4: Move test whether extent to map can be extended to one placefs/ext4/inode.c+29 -201 reply
2/4ext4: Fix ext4_writepages() in presence of truncatefs/ext4/inode.c+66 -411 reply
3/4ext4: Simplify truncation code in ext4_setattr()fs/ext4/inode.c+49 -601 reply
4/4ext4: Fix lost truncate due to race with writebackfs/ext4/ext4.h fs/ext4/inode.c+32 -94 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/4 v2] ext4: Fix races between writeback and truncate

Hello,

this patch set fixes two races between truncate and writeback code.
The first one was introduced by my rewrite of ext4 writeback path and Dave and Zheng have spotted them in their testing. It could result in some leaked fs blocks and delalloc accounting mismatch. The first two patches fix that bug.

The second race has been there for ages and could result in i_size being wrong on disk. The last two patches fix that race.

Honza