Dave Chinner 4ce159890c xfs: prevent extsize alignment from exceeding maximum extent size
When doing delayed allocation, if the allocation size is for a
maximally sized extent, extent size alignment can push it over this
limit. This results in an assert failure in xfs_bmbt_set_allf() as
the extent length is too large to find in the extent record.

Fix this by ensuring that we allow for space that extent size
alignment requires (up to 2 * (extsize -1) blocks as we have to
handle both head and tail alignment) when limiting the maximum size
of the extent.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
2011-01-28 09:05:36 -06:00
..
2011-01-11 20:28:29 -06:00
2011-01-11 20:28:29 -06:00
2010-10-18 15:08:07 -05:00
2010-10-18 15:08:07 -05:00
2010-10-18 15:08:07 -05:00
2010-07-26 13:16:44 -05:00
2010-10-18 15:08:07 -05:00
2010-12-16 16:05:51 -06:00
2011-01-12 08:46:41 -06:00
2010-10-18 15:08:07 -05:00
2010-10-18 15:08:06 -05:00
2010-10-18 15:08:06 -05:00
2010-10-18 15:08:06 -05:00