summaryrefslogtreecommitdiff
path: root/fs/bcachefs/btree_locking.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-05-11 00:15:30 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:22 +0300
commit60755344c6b18753c93b353f147c2e23b8b18de1 (patch)
tree535c5bb515ce407ff78b9822199c671e1757f430 /fs/bcachefs/btree_locking.h
parentb03b81dfd268938c6ed3b0ec79b4983523efb303 (diff)
downloadlinux-60755344c6b18753c93b353f147c2e23b8b18de1.tar.xz
bcachefs: kill BTREE_ITER_NOUNLOCK
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_locking.h')
-rw-r--r--fs/bcachefs/btree_locking.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_locking.h b/fs/bcachefs/btree_locking.h
index 33bc94a714c6..6591da0a52b3 100644
--- a/fs/bcachefs/btree_locking.h
+++ b/fs/bcachefs/btree_locking.h
@@ -107,7 +107,7 @@ static inline void __btree_node_unlock(struct btree_iter *iter, unsigned level)
static inline void btree_node_unlock(struct btree_iter *iter, unsigned level)
{
- BUG_ON(!level && iter->flags & BTREE_ITER_NOUNLOCK);
+ EBUG_ON(!level && iter->trans->nounlock);
__btree_node_unlock(iter, level);
}