Kiselev, Oleg 0082e99a90 ext4: avoid resizing to a partial cluster size
[ Upstream commit 69cb8e9d8cd97cdf5e293b26d70a9dee3e35e6bd ]

This patch avoids an attempt to resize the filesystem to an
unaligned cluster boundary.  An online resize to a size that is not
integral to cluster size results in the last iteration attempting to
grow the fs by a negative amount, which trips a BUG_ON and leaves the fs
with a corrupted in-memory superblock.

Signed-off-by: Oleg Kiselev <okiselev@amazon.com>
Link: https://lore.kernel.org/r/0E92A0AB-4F16-4F1A-94B7-702CC6504FDE@amazon.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-25 11:45:47 +02:00
..
2022-02-03 10:57:53 -05:00
2022-03-15 17:45:36 -04:00
2022-05-11 15:19:06 -04:00
2021-08-30 23:36:50 -04:00
2022-05-24 15:34:17 -04:00
2022-05-16 17:17:32 +02:00
2021-04-09 23:14:59 -04:00
2022-05-11 15:19:06 -04:00
2022-05-09 16:21:45 -04:00
2021-01-24 14:27:17 +01:00
2021-01-24 14:27:17 +01:00
2021-01-24 14:27:17 +01:00
2021-01-24 14:27:17 +01:00