mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 03:59:40 +02:00
bcachefs: Kill bch2_trans_unlock_noassert
Signed-off-by: Alan Huang <mmpgouride@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
6f03e30e7c
commit
f013b4ca35
|
|
@ -977,7 +977,7 @@ static noinline struct btree *bch2_btree_node_fill(struct btree_trans *trans,
|
|||
|
||||
/* Unlock before doing IO: */
|
||||
six_unlock_intent(&b->c.lock);
|
||||
bch2_trans_unlock_noassert(trans);
|
||||
bch2_trans_unlock(trans);
|
||||
|
||||
bch2_btree_node_read(trans, b, sync);
|
||||
|
||||
|
|
|
|||
|
|
@ -799,13 +799,6 @@ int bch2_trans_relock_notrace(struct btree_trans *trans)
|
|||
return __bch2_trans_relock(trans, false);
|
||||
}
|
||||
|
||||
void bch2_trans_unlock_noassert(struct btree_trans *trans)
|
||||
{
|
||||
__bch2_trans_unlock(trans);
|
||||
|
||||
trans_set_unlocked(trans);
|
||||
}
|
||||
|
||||
void bch2_trans_unlock(struct btree_trans *trans)
|
||||
{
|
||||
__bch2_trans_unlock(trans);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
void bch2_btree_lock_init(struct btree_bkey_cached_common *, enum six_lock_init_flags, gfp_t gfp);
|
||||
|
||||
void bch2_trans_unlock_noassert(struct btree_trans *);
|
||||
void bch2_trans_unlock_write(struct btree_trans *);
|
||||
|
||||
static inline bool is_btree_node(struct btree_path *path, unsigned l)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user