Commit 9eb8ebeb authored by Nicholas Swenson's avatar Nicholas Swenson Committed by Kent Overstreet

bcache: Fix for can_attach_cache()

Signed-off-by: default avatarNicholas Swenson <nks@daterainc.com>
Signed-off-by: default avatarKent Overstreet <kmo@daterainc.com>
parent d24a6e10
...@@ -1676,7 +1676,7 @@ static void run_cache_set(struct cache_set *c) ...@@ -1676,7 +1676,7 @@ static void run_cache_set(struct cache_set *c)
static bool can_attach_cache(struct cache *ca, struct cache_set *c) static bool can_attach_cache(struct cache *ca, struct cache_set *c)
{ {
return ca->sb.block_size == c->sb.block_size && return ca->sb.block_size == c->sb.block_size &&
ca->sb.bucket_size == c->sb.block_size && ca->sb.bucket_size == c->sb.bucket_size &&
ca->sb.nr_in_set == c->sb.nr_in_set; ca->sb.nr_in_set == c->sb.nr_in_set;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment