[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1381880242-3858-1-git-send-email-felipensp@gmail.com>
Date: Tue, 15 Oct 2013 20:37:22 -0300
From: Felipe Pena <felipensp@...il.com>
To: Kent Overstreet <kmo@...erainc.com>, Neil Brown <neilb@...e.de>
Cc: linux-bcache@...r.kernel.org, linux-raid@...r.kernel.org,
linux-kernel@...r.kernel.org, Felipe Pena <felipensp@...il.com>
Subject: [PATCH] drivers: md: bcache: Fix wrong check on can_attach_cache
There is a wrong check on can_attach_cache() function which
bucket_size is compared to block_size value.
Signed-off-by: Felipe Pena <felipensp@...il.com>
---
drivers/md/bcache/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index 547c4c5..d5bc1eb 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -1650,7 +1650,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;
}
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists