diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-10 01:57:08 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-08 23:29:19 +0200 |
commit | 650db8a87c343c856dcbaed2eb8d184df0308c42 (patch) | |
tree | 56e26c182aa45106b095ec2c7d01da9e11af1a00 /fs/bcachefs/btree_iter.h | |
parent | bcachefs: bch2_btree_root_alloc_fake_trans() (diff) | |
download | linux-650db8a87c343c856dcbaed2eb8d184df0308c42.tar.xz linux-650db8a87c343c856dcbaed2eb8d184df0308c42.zip |
bcachefs: trans->locked
Add a field for tracking whether a transaction object holds btree locks,
and assertions to verify state.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_iter.h')
-rw-r--r-- | fs/bcachefs/btree_iter.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_iter.h b/fs/bcachefs/btree_iter.h index 0d44d613e4ac..e47866105390 100644 --- a/fs/bcachefs/btree_iter.h +++ b/fs/bcachefs/btree_iter.h @@ -286,7 +286,6 @@ int bch2_trans_relock(struct btree_trans *); int bch2_trans_relock_notrace(struct btree_trans *); void bch2_trans_unlock(struct btree_trans *); void bch2_trans_unlock_long(struct btree_trans *); -bool bch2_trans_locked(struct btree_trans *); static inline int trans_was_restarted(struct btree_trans *trans, u32 restart_count) { |