ext4: Fix races between writeback and truncate
Status from this message: Thanks, applied.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ext4: Move test whether extent to map can be extended to one placefs/ | +29 | 1 reply | |
| 2/4 | ext4: Fix ext4_writepages() in presence of truncatefs/ | +66 | 1 reply | |
| 3/4 | ext4: Simplify truncation code in ext4_setattr()fs/ | +49 | 1 reply | |
| 4/4 | ext4: Fix lost truncate due to race with writebackfs/ fs/ | +32 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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