diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-12-18 00:46:35 -0500 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2014-01-08 16:05:10 -0500 |
commit | 88b9f8c426f35e04738220c1bc05dd1ea1b513a3 (patch) | |
tree | b0391209b767145e53d4c0f52d3cb56376e4dc53 /drivers/md/bcache/debug.c | |
parent | 5c41c8a713da7874bd79196696a275beeb11821e (diff) |
bcache: kill index()
That was a terrible name for a macro, add some better helpers to replace it.
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/debug.c')
-rw-r--r-- | drivers/md/bcache/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c index fab3767d6d28..473e8d5a7fe1 100644 --- a/drivers/md/bcache/debug.c +++ b/drivers/md/bcache/debug.c | |||
@@ -88,7 +88,7 @@ static void dump_bset(struct btree *b, struct bset *i) | |||
88 | next = bkey_next(k); | 88 | next = bkey_next(k); |
89 | 89 | ||
90 | bch_bkey_to_text(buf, sizeof(buf), k); | 90 | bch_bkey_to_text(buf, sizeof(buf), k); |
91 | printk(KERN_ERR "block %zu key %zi/%u: %s", index(i, b), | 91 | printk(KERN_ERR "block %u key %zi/%u: %s", bset_block_offset(b, i), |
92 | (uint64_t *) k - i->d, i->keys, buf); | 92 | (uint64_t *) k - i->d, i->keys, buf); |
93 | 93 | ||
94 | for (j = 0; j < KEY_PTRS(k); j++) { | 94 | for (j = 0; j < KEY_PTRS(k); j++) { |