aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorNicholas Swenson <nks@daterainc.com>2013-10-22 13:19:23 -0700
committerKent Overstreet <kmo@daterainc.com>2013-12-16 14:22:57 -0800
commit9eb8ebeb2471b8cbaa078066aeb85fe5d46f5304 (patch)
tree586d6a44ec253f64198d002fe1f77b6ecff78157 /drivers/md
parentbcache: Fix dirty_data accounting (diff)
downloadlinux-dev-9eb8ebeb2471b8cbaa078066aeb85fe5d46f5304.tar.xz
linux-dev-9eb8ebeb2471b8cbaa078066aeb85fe5d46f5304.zip
bcache: Fix for can_attach_cache()
Signed-off-by: Nicholas Swenson <nks@daterainc.com> Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/bcache/super.c2
1 files changed, 1 insertions, 1 deletions
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;
}