From: Nicholas Swenson Date: Tue, 22 Oct 2013 20:19:23 +0000 (-0700) Subject: bcache: Fix for can_attach_cache() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9eb8ebeb2471b8cbaa078066aeb85fe5d46f5304;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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; }