Commit fa3ae3ca authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: six_lock_counts() is now in six.c

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 315c9ba6
......@@ -131,7 +131,7 @@ void bch2_btree_node_unlock_write(struct btree_trans *trans,
bch2_btree_node_unlock_write_inlined(trans, path, b);
}
static struct six_lock_count btree_node_lock_counts(struct btree_trans *trans,
struct six_lock_count bch2_btree_node_lock_counts(struct btree_trans *trans,
struct btree_path *skip,
struct btree *b,
unsigned level)
......@@ -161,7 +161,7 @@ static inline void six_lock_readers_add(struct six_lock *lock, int nr)
void __bch2_btree_node_lock_write(struct btree_trans *trans, struct btree *b)
{
int readers = btree_node_lock_counts(trans, NULL, b, b->c.level).read;
int readers = bch2_btree_node_lock_counts(trans, NULL, b, b->c.level).read;
/*
* Must drop our read locks before calling six_lock_write() -
......@@ -244,7 +244,7 @@ bool bch2_btree_node_upgrade(struct btree_trans *trans,
path->btree_id,
&path->pos,
btree_node_locked(path, level),
btree_node_lock_counts(trans, NULL, b, level),
bch2_btree_node_lock_counts(trans, NULL, b, level),
six_lock_counts(&b->c.lock));
return false;
success:
......
......@@ -4,9 +4,9 @@
#include "buckets.h"
#include "btree_types.h"
#include "keylist.h"
#include "six.h"
#include <linux/blktrace_api.h>
#include "keylist.h"
#define CREATE_TRACE_POINTS
#include "trace.h"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment