diff options
author | Mike Snitzer <snitzer@redhat.com> | 2016-12-08 19:42:37 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-12-08 19:42:37 -0500 |
commit | e99dda8fc4567db6e39ec25b60bbcd68182dfd7b (patch) | |
tree | 2a69fed8fc7a49d12658b213832380eb0ae9632c | |
parent | 027c431ccfcc89f7398d9f3e9bc2eb60e6cc57ad (diff) |
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: Mike Snitzer <snitzer@redhat.com>
-rw-r--r-- | drivers/md/dm-cache-policy-smq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-policy-smq.c b/drivers/md/dm-cache-policy-smq.c index c33f4a6e1d7d..f19c6930a67c 100644 --- a/drivers/md/dm-cache-policy-smq.c +++ b/drivers/md/dm-cache-policy-smq.c | |||
@@ -1361,7 +1361,7 @@ static void smq_clear_dirty(struct dm_cache_policy *p, dm_oblock_t oblock) | |||
1361 | 1361 | ||
1362 | static unsigned random_level(dm_cblock_t cblock) | 1362 | static unsigned random_level(dm_cblock_t cblock) |
1363 | { | 1363 | { |
1364 | return hash_32_generic(from_cblock(cblock), 9) & (NR_CACHE_LEVELS - 1); | 1364 | return hash_32(from_cblock(cblock), 9) & (NR_CACHE_LEVELS - 1); |
1365 | } | 1365 | } |
1366 | 1366 | ||
1367 | static int smq_load_mapping(struct dm_cache_policy *p, | 1367 | static int smq_load_mapping(struct dm_cache_policy *p, |