RFC delayed allocation ENOSPC handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest6 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | delalloc ENOSPC: Add per-inode counters to store reserved blocksfs/ fs/ | +6 | 0 replies | |
| 2/6 | delalloc ENOSPC: estimate metadata blocks needed to reservefs/ fs/ | +31 | 0 replies | |
| 3/6 | delalloc ENOSPC: reserve blocksfs/ | +66 | 3 replies | |
| 4/6 | delalloc ENOSPC: avoid free blocks double bookingfs/ fs/ fs/ +4 more | +41 | 3 replies | |
| 5/6 | delalloc ENOSPC: release reservation for unlink/truncatefs/ | +21 | 0 replies | |
| 6/6 | delalloc ENOSPC: improve percpu counter accounting accuratefs/ include/ lib/ | +16 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC][PATCH 0/6] delayed allocation ENOSPC handling
The following series patches does block reservation for delayed allocation, to avoid ENOSPC later at page flush time.
Blocks(data and metadata) are reserved at da_write_begin() time, the freeblocks counter is updated by then, and the number of reserved blocks is store in per inode counter.
At the writepage time, the unused reserved meta blocks are returned back. At unlink/truncate time, reserved blocks are properly released.
Signed-off-by Mingming cao <[email protected]>