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
libfdt
.gitignore -rw-r--r-- 55 bytes
Makefile -rw-r--r-- 1.6 KB
Makefile.dtc -rw-r--r-- 340 bytes
checks.c -rw-r--r-- 17.8 KB
data.c -rw-r--r-- 5.8 KB
dtc-lexer.l -rw-r--r-- 4.0 KB
dtc-lexer.lex.c_shipped -rw-r--r-- 52.0 KB
dtc-parser.tab.c_shipped -rw-r--r-- 51.9 KB
dtc-parser.tab.h_shipped -rw-r--r-- 2.6 KB
dtc-parser.y -rw-r--r-- 5.8 KB
dtc.c -rw-r--r-- 6.5 KB
dtc.h -rw-r--r-- 6.6 KB
flattree.c -rw-r--r-- 21.8 KB
fstree.c -rw-r--r-- 2.2 KB
livetree.c -rw-r--r-- 11.9 KB
srcpos.c -rw-r--r-- 5.3 KB
srcpos.h -rw-r--r-- 2.8 KB
treesource.c -rw-r--r-- 5.9 KB
util.c -rw-r--r-- 1.4 KB
util.h -rw-r--r-- 1.4 KB
version_gen.h -rw-r--r-- 42 bytes

back to top