summaryrefslogtreecommitdiff
path: root/libbcachefs/recovery.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-04-15 14:10:51 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-04-15 14:24:48 -0400
commit5aaa6422b6fdc9cda8f808f7152df2073626b1bd (patch)
tree19c64dc4c4073a4d6585b16553c84e1fc5e2e9ec /libbcachefs/recovery.c
parent5639fb38cabaa326b8b664d874a46509d4a60bf2 (diff)
Update bcachefs sources to ad29cf999a91 bcachefs: set_btree_iter_dontneed also clears should_be_locked
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/recovery.c')
-rw-r--r--libbcachefs/recovery.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libbcachefs/recovery.c b/libbcachefs/recovery.c
index b76c1615..0f328aba 100644
--- a/libbcachefs/recovery.c
+++ b/libbcachefs/recovery.c
@@ -47,20 +47,6 @@ void bch2_btree_lost_data(struct bch_fs *c, enum btree_id btree)
}
}
-static bool btree_id_is_alloc(enum btree_id id)
-{
- switch (id) {
- case BTREE_ID_alloc:
- case BTREE_ID_backpointers:
- case BTREE_ID_need_discard:
- case BTREE_ID_freespace:
- case BTREE_ID_bucket_gens:
- return true;
- default:
- return false;
- }
-}
-
/* for -o reconstruct_alloc: */
static void bch2_reconstruct_alloc(struct bch_fs *c)
{