diff options
author | Slava Pestov <sp@daterainc.com> | 2014-07-12 07:22:53 (GMT) |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2014-08-04 22:23:04 (GMT) |
commit | 2452cc89063a2a6890368f185c4b6d7d8802179e (patch) | |
tree | 842af976b4c614cb1cf6b27c60bb7bbaac1f8cb1 /drivers/md/bcache/super.c | |
parent | c9a78332b42cbdcdd386a95192a716b67d1711a4 (diff) | |
download | linux-2452cc89063a2a6890368f185c4b6d7d8802179e.tar.xz |
bcache: try to set b->parent properly
bcache_flash_dev.ktest would reliably crash with 8k and 16k bucket size
before; now it passes.
Change-Id: Ib542232235e39298c3a7548fe52b645cabb823d1
Diffstat (limited to 'drivers/md/bcache/super.c')
-rw-r--r-- | drivers/md/bcache/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 12ad381..b6114d6 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -1601,7 +1601,7 @@ static void run_cache_set(struct cache_set *c) goto err; err = "error reading btree root"; - c->root = bch_btree_node_get(c, NULL, k, j->btree_level, true); + c->root = bch_btree_node_get(c, NULL, k, j->btree_level, true, NULL); if (IS_ERR_OR_NULL(c->root)) goto err; @@ -1676,7 +1676,7 @@ static void run_cache_set(struct cache_set *c) goto err; err = "cannot allocate new btree root"; - c->root = __bch_btree_node_alloc(c, NULL, 0, true); + c->root = __bch_btree_node_alloc(c, NULL, 0, true, NULL); if (IS_ERR_OR_NULL(c->root)) goto err; |