• Sasha Levin's avatar
    fs, jbd: use a more generic hash function · 3c9cafe0
    Sasha Levin authored
    While the hash function used by the revoke hashtable is good somewhere else,
    it's not really good here.
    
    The default hash shift (8) means that one third of the hashing function
    gets lost (and is undefined anyways (8 - 12 = negative shift)):
    
    	"(block << (hash_shift - 12))) & (table->hash_size - 1)"
    
    Instead, just use the kernel's generic hash function that gets used everywhere
    else.
    Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    3c9cafe0
revoke.c 21.1 KB