summaryrefslogtreecommitdiffstats
path: root/fs/xfs/quota/xfs_dquot_item.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2011-01-27 12:17:58 +1100
committerAlex Elder <aelder@sgi.com>2011-01-28 09:05:36 -0600
commit4ce159890c00e2cc705e955a939bf1dca7b07ab8 (patch)
tree8b6351a4d577232c6c3e71c11c6533ce7ff0aa78 /fs/xfs/quota/xfs_dquot_item.c
parent14b064ceaa6f51a7426cc45b4b43685b94380658 (diff)
downloadlinux-4ce159890c00e2cc705e955a939bf1dca7b07ab8.tar.gz
linux-4ce159890c00e2cc705e955a939bf1dca7b07ab8.tar.bz2
linux-4ce159890c00e2cc705e955a939bf1dca7b07ab8.zip
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 <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/quota/xfs_dquot_item.c')
0 files changed, 0 insertions, 0 deletions