Commit b6ccde39 authored by Eric Biggers's avatar Eric Biggers Committed by Andreas Gruenbacher
Browse files

gfs2: avoid inefficient use of crc32_le_shift()



__get_log_header() was using crc32_le_shift() to update a CRC with four
zero bytes.  However, this is about 5x slower than just CRC'ing four
zero bytes in the normal way.  Just do that instead.

(We could instead make crc32_le_shift() faster on short lengths.  But
all its callers do just fine without it, so I'd like to just remove it.)

Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 87faee38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment