bcachefs: Improve bch2_btree_node_relock()
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 27 Aug 2022 16:28:09 +0000 (12:28 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:39 +0000 (17:09 -0400)
commit8a9c1b1cb0edacdf4ac9c378c4ec4fc376fc8bac
treed1c29fc0686dbd1dd19f04240455c36e37747ef1
parentce56bf7fc23b6c2cf6edfbdfba1805c1842641ca
bcachefs: Improve bch2_btree_node_relock()

This moves the IS_ERR_OR_NULL() check to the inline part, since that's a
fast path event.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_locking.c
fs/bcachefs/btree_locking.h