diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-07-12 13:55:03 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:07 -0400 |
commit | 8479938d7a0f6c6cf6362c72880e753b3d7a707a (patch) | |
tree | 2fcef58d98c02334138389be77b5177437e30a70 /fs/bcachefs/fsck.c | |
parent | d82978ca1593890a1b41eab6d06fe6e5950e4722 (diff) |
bcachefs: Convert snapshot table to RCU array
This switches the generic radix tree for the in-memory table of snapshot
nodes to a simple rcu array. This means we have to add new locking to
deal with reallocations, but is faster than traversing the radix tree.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fsck.c')
-rw-r--r-- | fs/bcachefs/fsck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index ddc2782fc5b1..bc769b3e932a 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -894,7 +894,7 @@ static int check_inode(struct btree_trans *trans, * particular is not atomic, so on the internal snapshot nodes * we can see inodes marked for deletion after a clean shutdown */ - if (bch2_snapshot_internal_node(c, k.k->p.snapshot)) + if (bch2_snapshot_is_internal_node(c, k.k->p.snapshot)) return 0; if (!bkey_is_inode(k.k)) |