Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e99dda8f authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm cache policy smq: use hash_32() instead of hash_32_generic()



Switch to using hash_32() because hash_32_generic() should only be used
by the kernel's selftests.

Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 027c431c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1361,7 +1361,7 @@ static void smq_clear_dirty(struct dm_cache_policy *p, dm_oblock_t oblock)

static unsigned random_level(dm_cblock_t cblock)
{
	return hash_32_generic(from_cblock(cblock), 9) & (NR_CACHE_LEVELS - 1);
	return hash_32(from_cblock(cblock), 9) & (NR_CACHE_LEVELS - 1);
}

static int smq_load_mapping(struct dm_cache_policy *p,