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
netfilter
Kconfig -rw-r--r-- 1.6 KB
Makefile -rw-r--r-- 474 bytes
br.c -rw-r--r-- 2.1 KB
br_device.c -rw-r--r-- 7.6 KB
br_fdb.c -rw-r--r-- 9.8 KB
br_forward.c -rw-r--r-- 6.1 KB
br_if.c -rw-r--r-- 10.1 KB
br_input.c -rw-r--r-- 4.7 KB
br_ioctl.c -rw-r--r-- 9.2 KB
br_multicast.c -rw-r--r-- 40.4 KB
br_netfilter.c -rw-r--r-- 26.9 KB
br_netlink.c -rw-r--r-- 4.9 KB
br_notify.c -rw-r--r-- 2.4 KB
br_private.h -rw-r--r-- 14.8 KB
br_private_stp.h -rw-r--r-- 1.6 KB
br_stp.c -rw-r--r-- 10.9 KB
br_stp_bpdu.c -rw-r--r-- 5.2 KB
br_stp_if.c -rw-r--r-- 7.0 KB
br_stp_timer.c -rw-r--r-- 4.4 KB
br_sysfs_br.c -rw-r--r-- 22.7 KB
br_sysfs_if.c -rw-r--r-- 7.9 KB

back to top