diff options
author | Coly Li <colyli@suse.de> | 2020-03-22 14:03:00 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-03-22 10:06:57 -0600 |
commit | feac1a70b806373d076a95b739c4feeceb21e814 (patch) | |
tree | 9ebbd2a7653b51a9fb8ce24c4fd947799b3ad386 /drivers/md/bcache/btree.h | |
parent | 253a99d95d5b30377b0193f1f1294f9068849c0b (diff) |
bcache: add bcache_ prefix to btree_root() and btree() macros
This patch changes macro btree_root() and btree() to bcache_btree_root()
and bcache_btree(), to avoid potential generic name clash in future.
NOTE: for product kernel maintainers, this patch can be skipped if
you feel the rename stuffs introduce inconvenince to patch backport.
Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/btree.h')
-rw-r--r-- | drivers/md/bcache/btree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/btree.h b/drivers/md/bcache/btree.h index f37153db3f6c..19e30266070a 100644 --- a/drivers/md/bcache/btree.h +++ b/drivers/md/bcache/btree.h @@ -309,7 +309,7 @@ static inline void force_wake_up_gc(struct cache_set *c) * @b: parent btree node * @op: pointer to struct btree_op */ -#define btree(fn, key, b, op, ...) \ +#define bcache_btree(fn, key, b, op, ...) \ ({ \ int _r, l = (b)->level - 1; \ bool _w = l <= (op)->lock; \ @@ -329,7 +329,7 @@ static inline void force_wake_up_gc(struct cache_set *c) * @c: cache set * @op: pointer to struct btree_op */ -#define btree_root(fn, c, op, ...) \ +#define bcache_btree_root(fn, c, op, ...) \ ({ \ int _r = -EINTR; \ do { \ |