Revision 4ce159890c00e2cc705e955a939bf1dca7b07ab8 authored by Dave Chinner on 27 January 2011, 01:17:58 UTC, committed by Alex Elder on 28 January 2011, 15:05:36 UTC
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>
1 parent 14b064c
History
File Mode Size
ircomm
irlan
irnet
Kconfig -rw-r--r-- 3.3 KB
Makefile -rw-r--r-- 503 bytes
af_irda.c -rw-r--r-- 67.5 KB
discovery.c -rw-r--r-- 12.5 KB
irda_device.c -rw-r--r-- 8.0 KB
iriap.c -rw-r--r-- 26.2 KB
iriap_event.c -rw-r--r-- 12.5 KB
irias_object.c -rw-r--r-- 13.4 KB
irlap.c -rw-r--r-- 33.7 KB
irlap_event.c -rw-r--r-- 65.0 KB
irlap_frame.c -rw-r--r-- 35.9 KB
irlmp.c -rw-r--r-- 54.3 KB
irlmp_event.c -rw-r--r-- 26.0 KB
irlmp_frame.c -rw-r--r-- 14.0 KB
irmod.c -rw-r--r-- 5.4 KB
irnetlink.c -rw-r--r-- 3.2 KB
irproc.c -rw-r--r-- 2.5 KB
irqueue.c -rw-r--r-- 22.8 KB
irsysctl.c -rw-r--r-- 7.1 KB
irttp.c -rw-r--r-- 50.8 KB
parameters.c -rw-r--r-- 15.4 KB
qos.c -rw-r--r-- 22.4 KB
timer.c -rw-r--r-- 6.3 KB
wrapper.c -rw-r--r-- 13.0 KB

back to top