summaryrefslogtreecommitdiff
path: root/libbcachefs/btree_locking.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-09-25 15:23:29 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2019-09-25 15:23:50 -0400
commitdb39aa3e1b528db3b9d731c3b054f27411e1e1a9 (patch)
tree1fad2b9a5f66cd9d7b7096c53604de691c47f26c /libbcachefs/btree_locking.h
parentceee9244dedcca3df57b76fafb772207cdfbd6ee (diff)
Update bcachefs sources to 5a3a4087af bcachefs: Convert a BUG_ON() to a warning
Diffstat (limited to 'libbcachefs/btree_locking.h')
-rw-r--r--libbcachefs/btree_locking.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/btree_locking.h b/libbcachefs/btree_locking.h
index ea07ba19..592c3b4e 100644
--- a/libbcachefs/btree_locking.h
+++ b/libbcachefs/btree_locking.h
@@ -212,7 +212,7 @@ static inline void bch2_btree_node_lock_write(struct btree *b, struct btree_iter
EBUG_ON(iter->l[b->level].b != b);
EBUG_ON(iter->l[b->level].lock_seq != b->lock.state.seq);
- if (!six_trylock_write(&b->lock))
+ if (unlikely(!six_trylock_write(&b->lock)))
__bch2_btree_node_lock_write(b, iter);
}