divide indirect blocks fairly on delalloc extent split
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | xfs: handle indlen shortage on delalloc extent mergefs/ | +6 | 1 reply | |
| 2/2 | xfs: split indlen reservations fairly when under reservedfs/ | +40 | 5 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Darrick J. Wong |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] divide indirect blocks fairly on delalloc extent split
Hi all,
These are a couple fixes for dealing with delalloc indlen reservations that happen to be less than the worst case res as calculated by xfs_bmap_worst_indlen().
Patch 1 prevents an unexpected in-core allocation and assert failure in the delalloc extent merge case. Patch 2 reworks xfs_bmap_split_indlen() to more fairly divide indlen blocks when an extent is split and the existing reservation is not sufficient. The current scheme doesn't properly deal with extents that are already under-reserved and can lead to indlen == 0 cases fairly easily.
The latter issue was reported by Patrick[1] and reproduced simply by copying a large sparse vdisk image using 'cp --sparse=always.' These patches survive xfstests with and without rmapbt without regression.
Brian
[1] http://www.spinics.net/lists/linux-xfs/msg03935.html
Brian Foster (2):
xfs: handle indlen shortage on delalloc extent merge
xfs: split indlen reservations fairly when under reserved
fs/xfs/libxfs/xfs_bmap.c | 67 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 46 insertions(+), 21 deletions(-)
Signature · 1 line
2.7.4