xfs: overflow in xfs_iomap_eof_align_last_fsb
authorPeter Watkins <treestem@gmail.com>
Wed, 3 Dec 2014 22:30:51 +0000 (09:30 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Dec 2014 22:30:51 +0000 (09:30 +1100)
If extsize is set and new_last_fsb is larger than 32 bits, the
roundup to extsize will overflow the align variable. Instead,
combine alignments by rounding stripe size up to extsize.

Signed-off-by: Peter Watkins <treestem@gmail.com>
Reviewed-by: Nathaniel W. Turner <nate@houseofnate.net>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iomap.c

Simple merge