]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: use a better hash function for the revoke table
authorTheodore Ts'o <tytso@mit.edu>
Thu, 30 Oct 2014 14:53:17 +0000 (10:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 30 Oct 2014 14:53:17 +0000 (10:53 -0400)
commit8b5dfe9a1e0794e5e9d26465924c24c395e34219
treee713d0ba1a20da5561f181cd9a17fe1e9cfc550e
parentfcddf1ca4ff8320a9a98a5f49953f10430f465da
jbd2: use a better hash function for the revoke table

The old hash function didn't work well for 64-bit block numbers, and
used undefined (negative) shift right behavior.  Use the generic
64-bit hash function instead.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reported-by: Andrey Ryabinin <a.ryabinin@samsung.com>
fs/jbd2/revoke.c