Fix some fiemap problems
Status from this message: Thanks, applied.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest posting 2/22 patches 2 repliesApplied
- v5 posting 1/22 patches 0 repliesSuperseded
- v31 patch 8 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 1 patch | 2 replies | Superseded | |
| v1 | 1 patch | 5 replies | Superseded |
Patches in v5 posting 2/2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ext4: Prevent race while walking extent treefs/ fs/ | +76 | 1 reply | |
| 2/2 | ext4: simple cleanup in fiemap codepathfs/ | +16 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH 0/2 v5] Fix some fiemap problems
This patchset fixes mainly two problems in fiemap in ext4. First of all we could hit BUG_ON() if the extent tree is changed while we are traversing it. This particular problem has been revealed by xfstest 225 on s390x architecture.
The other problem is that we potentially might miss some delayed extents with fiemap if they are written after we've searched the extent tree and before we're going to search for delayed extent in extent status tree.
Both problems are fixed by the first patch of the patch set. The second contains just some cleanups.
This has been based on top of the ext4 git tree containing extent status tree. It has been tested with xfstests on s390x.
Please review carefully since fiemap bugs might cause problems with cp possibly corrupting user data.
Thanks!
-Lukas
---
v5: Change check for existing delayed extent. Update comments and description
[PATCH 1/2 v5] ext4: Prevent race while walking extent tree [PATCH 2/2 v5] ext4: simple cleanup in fiemap codepath
fs/ext4/ext4_extents.h | 14 ----fs/ext4/extents.c | 156 ++++++++++++++++++++++++++---------------------
2 files changed, 86 insertions(+), 84 deletions(-)