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:
Kent Overstreet
2013-10-31 15:46:42 -07:00
parent 2599b53b7b
commit 81ab4190ac
10 changed files with 387 additions and 340 deletions

View File

@@ -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";