Commit aef22f6f authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Don't trace should_be_locked unless changing

parent cd112424
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -417,9 +417,11 @@ static inline void btree_path_set_should_be_locked(struct btree_trans *trans, st
	EBUG_ON(!btree_node_locked(path, path->level));
	EBUG_ON(path->uptodate);

	if (!path->should_be_locked) {
		path->should_be_locked = true;
		trace_btree_path_should_be_locked(trans, path);
	}
}

static inline void __btree_path_set_level_up(struct btree_trans *trans,
				      struct btree_path *path,