From: Dave Chinner Date: Thu, 27 Jan 2011 01:17:58 +0000 (+1100) Subject: xfs: prevent extsize alignment from exceeding maximum extent size X-Git-Tag: v2.6.38-rc3~5^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ce159890c00e2cc705e955a939bf1dca7b07ab8;p=pandora-kernel.git 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 Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder --- Reading git-diff-tree failed