From: Nicholas Swenson Date: Tue, 22 Oct 2013 20:19:23 +0000 (-0700) Subject: bcache: Fix for can_attach_cache() X-Git-Tag: firefly_0821_release~176^2~4719^2~8^2~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9eb8ebeb2471b8cbaa078066aeb85fe5d46f5304;p=firefly-linux-kernel-4.4.55.git bcache: Fix for can_attach_cache() Signed-off-by: Nicholas Swenson Signed-off-by: Kent Overstreet --- diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index dec15cd2d797..c57bfa071a57 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -1676,7 +1676,7 @@ err: static bool can_attach_cache(struct cache *ca, struct cache_set *c) { 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; }