bcache: move macro btree() and btree_root() into btree.h
authorColy Li <colyli@suse.de>
Sun, 22 Mar 2020 06:02:59 +0000 (14:02 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 22 Mar 2020 16:06:57 +0000 (10:06 -0600)
commit253a99d95d5b30377b0193f1f1294f9068849c0b
treeea276c16ee1b41ae5df776f2882767ae9253a6f8
parent431d6e3eec203ac6f9a20d2afc23a4c6508281c0
bcache: move macro btree() and btree_root() into btree.h

In order to accelerate bcache registration speed, the macro btree()
and btree_root() will be referenced out of btree.c. This patch moves
them from btree.c into btree.h with other relative function declaration
in btree.h, for the following changes.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/btree.c
drivers/md/bcache/btree.h