Skip to content

divide indirect blocks fairly on delalloc extent split

Brian Foster linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfs: handle indlen shortage on delalloc extent mergefs/xfs/libxfs/xfs_bmap.c+6 -31 reply
2/2xfs: split indlen reservations fairly when under reservedfs/xfs/libxfs/xfs_bmap.c+40 -185 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDarrick J. Wong
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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