bcache: Pull on disk data structures out into a separate header
Now, the on disk data structures are in a header that can be exported to userspace - and having them all centralized is nice too. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
This commit is contained in:
@@ -231,7 +231,7 @@ static void bch_btree_node_read_done(struct btree *b)
|
||||
goto err;
|
||||
|
||||
err = "bad magic";
|
||||
if (i->magic != bset_magic(b->c))
|
||||
if (i->magic != bset_magic(&b->c->sb))
|
||||
goto err;
|
||||
|
||||
err = "bad checksum";
|
||||
|
Reference in New Issue
Block a user