From c43a6ef9a0747ef1094ff14e173513070ed91600 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 6 Jun 2020 12:28:01 -0400 Subject: bcachefs: btree_bkey_cached_common This is prep work for the btree key cache: btree iterators will point to either struct btree, or a new struct bkey_cached. Signed-off-by: Kent Overstreet --- fs/bcachefs/alloc_background.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/bcachefs/alloc_background.c') diff --git a/fs/bcachefs/alloc_background.c b/fs/bcachefs/alloc_background.c index a6d3417ac262..5988971521eb 100644 --- a/fs/bcachefs/alloc_background.c +++ b/fs/bcachefs/alloc_background.c @@ -1529,7 +1529,7 @@ again: rcu_read_unlock(); btree_node_lock_type(c, b, SIX_LOCK_read); bch2_btree_node_write(c, b, SIX_LOCK_read); - six_unlock_read(&b->lock); + six_unlock_read(&b->c.lock); goto again; } else { nodes_unwritten = true; -- cgit v1.2.3