diff options
author | Kiselev, Oleg <okiselev@amazon.com> | 2022-07-20 04:27:48 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-08-02 23:56:26 -0400 |
commit | 69cb8e9d8cd97cdf5e293b26d70a9dee3e35e6bd (patch) | |
tree | 4c04cf154e06fd8c06738c0bc78ce665902161d7 /fs/ext4/ext4.h | |
parent | 026d0d27c4882303e4b071ca6d996640cc2932c3 (diff) | |
download | lwn-69cb8e9d8cd97cdf5e293b26d70a9dee3e35e6bd.tar.gz lwn-69cb8e9d8cd97cdf5e293b26d70a9dee3e35e6bd.zip |
ext4: avoid resizing to a partial cluster size
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>
Diffstat (limited to 'fs/ext4/ext4.h')
0 files changed, 0 insertions, 0 deletions