diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-12-17 21:46:35 -0800 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2014-01-08 13:05:10 -0800 |
commit | 88b9f8c426f35e04738220c1bc05dd1ea1b513a3 (patch) | |
tree | b0391209b767145e53d4c0f52d3cb56376e4dc53 /drivers/md/bcache/debug.c | |
parent | 5c41c8a713da7874bd79196696a275beeb11821e (diff) | |
download | linux-stable-88b9f8c426f35e04738220c1bc05dd1ea1b513a3.tar.gz linux-stable-88b9f8c426f35e04738220c1bc05dd1ea1b513a3.tar.bz2 linux-stable-88b9f8c426f35e04738220c1bc05dd1ea1b513a3.zip |
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) next = bkey_next(k); bch_bkey_to_text(buf, sizeof(buf), k); - printk(KERN_ERR "block %zu key %zi/%u: %s", index(i, b), + printk(KERN_ERR "block %u key %zi/%u: %s", bset_block_offset(b, i), (uint64_t *) k - i->d, i->keys, buf); for (j = 0; j < KEY_PTRS(k); j++) { |