projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
027c431
)
dm cache policy smq: use hash_32() instead of hash_32_generic()
author
Mike Snitzer
<snitzer@redhat.com>
Fri, 9 Dec 2016 00:42:37 +0000
(19:42 -0500)
committer
Mike Snitzer
<snitzer@redhat.com>
Fri, 9 Dec 2016 00:42:37 +0000
(19:42 -0500)
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>
drivers/md/dm-cache-policy-smq.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-cache-policy-smq.c
b/drivers/md/dm-cache-policy-smq.c
index c33f4a6e1d7d087a086b492a3b3cc61d13049acd..f19c6930a67c512894e4cd14bf66e2fa1d3e3c33 100644
(file)
--- 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)
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,