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-- 6.9 KB
Makefile -rw-r--r-- 1.4 KB
addrconf.c -rw-r--r-- 114.1 KB
addrconf_core.c -rw-r--r-- 2.4 KB
addrlabel.c -rw-r--r-- 13.8 KB
af_inet6.c -rw-r--r-- 30.1 KB
ah6.c -rw-r--r-- 17.5 KB
anycast.c -rw-r--r-- 11.5 KB
datagram.c -rw-r--r-- 20.0 KB
esp6.c -rw-r--r-- 14.1 KB
exthdrs.c -rw-r--r-- 21.2 KB
exthdrs_core.c -rw-r--r-- 3.2 KB
fib6_rules.c -rw-r--r-- 6.8 KB
icmp.c -rw-r--r-- 21.3 KB
inet6_connection_sock.c -rw-r--r-- 6.9 KB
inet6_hashtables.c -rw-r--r-- 8.0 KB
ip6_fib.c -rw-r--r-- 32.8 KB
ip6_flowlabel.c -rw-r--r-- 17.3 KB
ip6_input.c -rw-r--r-- 7.6 KB
ip6_output.c -rw-r--r-- 38.5 KB
ip6_tunnel.c -rw-r--r-- 36.4 KB
ip6mr.c -rw-r--r-- 49.0 KB
ipcomp6.c -rw-r--r-- 5.4 KB
ipv6_sockglue.c -rw-r--r-- 27.2 KB
mcast.c -rw-r--r-- 62.7 KB
mip6.c -rw-r--r-- 13.2 KB
ndisc.c -rw-r--r-- 45.4 KB
netfilter.c -rw-r--r-- 4.4 KB
proc.c -rw-r--r-- 10.3 KB
protocol.c -rw-r--r-- 1.6 KB
raw.c -rw-r--r-- 30.8 KB
reassembly.c -rw-r--r-- 18.8 KB
route.c -rw-r--r-- 68.3 KB
sit.c -rw-r--r-- 28.8 KB
syncookies.c -rw-r--r-- 7.3 KB
sysctl_net_ipv6.c -rw-r--r-- 3.4 KB
tcp_ipv6.c -rw-r--r-- 58.3 KB
tunnel6.c -rw-r--r-- 4.6 KB
udp.c -rw-r--r-- 37.2 KB
udp_impl.h -rw-r--r-- 1.4 KB
udplite.c -rw-r--r-- 3.2 KB
xfrm6_input.c -rw-r--r-- 3.0 KB
xfrm6_mode_beet.c -rw-r--r-- 3.5 KB
xfrm6_mode_ro.c -rw-r--r-- 2.3 KB
xfrm6_mode_transport.c -rw-r--r-- 2.3 KB
xfrm6_mode_tunnel.c -rw-r--r-- 3.1 KB
xfrm6_output.c -rw-r--r-- 2.5 KB
xfrm6_policy.c -rw-r--r-- 8.1 KB
xfrm6_state.c -rw-r--r-- 4.5 KB
xfrm6_tunnel.c -rw-r--r-- 9.9 KB

back to top