]> 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)
commita76a44e61c4968aa2acb47a6387b1a1306267033
tree49ffbb246941e9198f9820437ee5e5ac38aac106
parentab032c5ff25d62eeaa13066f1570608c9870e40c
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