hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/md/bcache/debug.c
....@@ -25,8 +25,8 @@
2525 for (i = (start); \
2626 (void *) i < (void *) (start) + (KEY_SIZE(&b->key) << 9) &&\
2727 i->seq == (start)->seq; \
28
- i = (void *) i + set_blocks(i, block_bytes(b->c)) * \
29
- block_bytes(b->c))
28
+ i = (void *) i + set_blocks(i, block_bytes(b->c->cache)) * \
29
+ block_bytes(b->c->cache))
3030
3131 void bch_btree_verify(struct btree *b)
3232 {
....@@ -82,14 +82,14 @@
8282
8383 for_each_written_bset(b, ondisk, i) {
8484 unsigned int block = ((void *) i - (void *) ondisk) /
85
- block_bytes(b->c);
85
+ block_bytes(b->c->cache);
8686
8787 pr_err("*** on disk block %u:\n", block);
8888 bch_dump_bset(&b->keys, i, block);
8989 }
9090
9191 pr_err("*** block %zu not written\n",
92
- ((void *) i - (void *) ondisk) / block_bytes(b->c));
92
+ ((void *) i - (void *) ondisk) / block_bytes(b->c->cache));
9393
9494 for (j = 0; j < inmemory->keys; j++)
9595 if (inmemory->d[j] != sorted->d[j])
....@@ -238,7 +238,7 @@
238238 if (!IS_ERR_OR_NULL(bcache_debug)) {
239239 char name[50];
240240
241
- snprintf(name, 50, "bcache-%pU", c->sb.set_uuid);
241
+ snprintf(name, 50, "bcache-%pU", c->set_uuid);
242242 c->debug = debugfs_create_file(name, 0400, bcache_debug, c,
243243 &cache_set_debug_ops);
244244 }
....@@ -251,7 +251,7 @@
251251 debugfs_remove_recursive(bcache_debug);
252252 }
253253
254
-void __init bch_debug_init(struct kobject *kobj)
254
+void __init bch_debug_init(void)
255255 {
256256 /*
257257 * it is unnecessary to check return value of