]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: correctly restore system zone info when remount fails
authorJan Kara <jack@suse.cz>
Tue, 28 Jul 2020 13:04:37 +0000 (15:04 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 7 Aug 2020 18:12:37 +0000 (14:12 -0400)
commit767f53cae3f64b7e12b4fe1f38cf24198dd7e3ba
treebf8b4e6d02df5868ce5b3d22ef172c2b22070228
parentdbc2be46da5f2e4a2ad713f550973d37e1ad1d7e
ext4: correctly restore system zone info when remount fails

When remounting filesystem fails late during remount handling and
block_validity mount option is also changed during the remount, we fail
to restore system zone information to a state matching the mount option.
This is mostly harmless, just the block validity checking will not match
the situation described by the mount option. Make sure these two are always
consistent.

Reported-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20200728130437.7804-7-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/block_validity.c
fs/ext4/super.c