ext4: simplify fast-commit CRC calculation
authorEric Biggers <ebiggers@google.com>
Sun, 6 Nov 2022 22:48:41 +0000 (14:48 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 9 Dec 2022 02:49:24 +0000 (21:49 -0500)
commit8805dbcb3e83a4e5a6c91edc15643a7498e576ce
treec01526ce4ed0901930caef5e8b4a2e1f826cd732
parent48a6a66db82b8043d298a630f22c62d43550cae5
ext4: simplify fast-commit CRC calculation

Instead of checksumming each field as it is added to the block, just
checksum each block before it is written.  This is simpler, and also
much more efficient.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20221106224841.279231-8-ebiggers@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fast_commit.c