Btrfs: truncate space reservation fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | Btrfs: account for crcs in delayed ref processingfs/ fs/ fs/ +2 more | +83 | 0 replies | |
| 2/5 | Btrfs: refill block reserves during truncatefs/ fs/ fs/ | +46 | 0 replies | |
| 3/5 | Btrfs: reserve space for block groupsfs/ fs/ fs/ | +11 | 0 replies | |
| 4/5 | Btrfs: don't commit the transaction in the async space flushingfs/ | +8 | 0 replies | |
| 5/5 | Btrfs: don't steal from the global reserve if we don't have the spacefs/ | +44 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] Btrfs: truncate space reservation fixes
One of the production workloads here at FB ends up creating and eventually deleting very large files. We were consistently hitting ENOSPC aborts while trying to delete the files because there wasn't enough metadata reserved to cover deleting CRCs or actually updating the block group items on disk.
This patchset addresses these problems by adding crc items into the math for delayed ref processing, and changing the truncate items loop to reserve metadata more often.
It also solves a performance problem where we are constantly committing the transaction in hopes of making enospc progress.