Commit 7f81d4cf authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: fix setting btree_node_accessed()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 72141e1f
...@@ -748,7 +748,7 @@ struct btree *bch2_btree_node_get(struct bch_fs *c, struct btree_iter *iter, ...@@ -748,7 +748,7 @@ struct btree *bch2_btree_node_get(struct bch_fs *c, struct btree_iter *iter,
} }
/* avoid atomic set bit if it's not needed: */ /* avoid atomic set bit if it's not needed: */
if (btree_node_accessed(b)) if (!btree_node_accessed(b))
set_btree_node_accessed(b); set_btree_node_accessed(b);
if (unlikely(btree_node_read_error(b))) { if (unlikely(btree_node_read_error(b))) {
......
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