]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: factor rmap btree size into the indlen calculations
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 28 Nov 2016 03:57:42 +0000 (14:57 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 28 Nov 2016 03:57:42 +0000 (14:57 +1100)
commitfd26a88093bab6529ea2de819114ca92dbd1d71d
treeb6c08ae8b5bba087c1fbb2b54aefdcc5602fd394
parent1247ec4c5f6e64b3cf01af58173820cdc61f11ed
xfs: factor rmap btree size into the indlen calculations

When we're estimating the amount of space it's going to take to satisfy
a delalloc reservation, we need to include the space that we might need
to grow the rmapbt.  This helps us to avoid running out of space later
when _iomap_write_allocate needs more space than we reserved.  Eryu Guan
observed this happening on generic/224 when sunit/swidth were set.

Reported-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_bmap.c