diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-01-09 16:38:40 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-12 11:39:40 +0100 |
commit | 2b7dae91a1341302077798ddc38e8bfd8a012cf1 (patch) | |
tree | 3812cc3166cad5a7af4b4a94b4b79b848bc244a0 /fs/xfs/xfs_reflink.c | |
parent | 49dc19915d3b0893a698a2d78f732beaff119a4d (diff) | |
download | linux-stable-2b7dae91a1341302077798ddc38e8bfd8a012cf1.tar.gz linux-stable-2b7dae91a1341302077798ddc38e8bfd8a012cf1.tar.bz2 linux-stable-2b7dae91a1341302077798ddc38e8bfd8a012cf1.zip |
xfs: factor rmap btree size into the indlen calculations
commit fd26a88093bab6529ea2de819114ca92dbd1d71d upstream.
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>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/xfs/xfs_reflink.c')
0 files changed, 0 insertions, 0 deletions