]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: fix portability problems caused by unaligned accesses
authorTheodore Ts'o <tytso@mit.edu>
Mon, 3 May 2021 19:37:33 +0000 (15:37 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 10 Aug 2021 14:11:20 +0000 (10:11 -0400)
commita20d1cebb98bba75f2e34fddc768dd8712c1bded
tree49ffbb246941e9198f9820437ee5e5ac38aac106
parent877ba3f729fd3d8ef0e29bc2a55e57cfa54b2e43
jbd2: fix portability problems caused by unaligned accesses

This commit applies the e2fsck/recovery.c portions of commit
1e0c8ca7c08a ("e2fsck: fix portability problems caused by unaligned
accesses) from the e2fsprogs git tree.

The on-disk format for the ext4 journal can have unaigned 32-bit
integers.  This can happen when replaying a journal using a obsolete
checksum format (which was never popularly used, since the v3 format
replaced v2 while the metadata checksum feature was being stablized).

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/recovery.c