projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[cascardo/linux.git]
/
drivers
/
md
/
dm-cache-policy-cleaner.c
diff --git
a/drivers/md/dm-cache-policy-cleaner.c
b/drivers/md/dm-cache-policy-cleaner.c
index
8a09645
..
14aaaf0
100644
(file)
--- a/
drivers/md/dm-cache-policy-cleaner.c
+++ b/
drivers/md/dm-cache-policy-cleaner.c
@@
-83,7
+83,7
@@
static struct list_head *list_pop(struct list_head *q)
static int alloc_hash(struct hash *hash, unsigned elts)
{
hash->nr_buckets = next_power(elts >> 4, 16);
static int alloc_hash(struct hash *hash, unsigned elts)
{
hash->nr_buckets = next_power(elts >> 4, 16);
- hash->hash_bits =
ffs(hash->nr_buckets) - 1
;
+ hash->hash_bits =
__ffs(hash->nr_buckets)
;
hash->table = vzalloc(sizeof(*hash->table) * hash->nr_buckets);
return hash->table ? 0 : -ENOMEM;
hash->table = vzalloc(sizeof(*hash->table) * hash->nr_buckets);
return hash->table ? 0 : -ENOMEM;