diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-10-19 15:11:45 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:14 -0400 |
commit | b71717dac64d76879ba3c70cfcfccf57991205f8 (patch) | |
tree | 5f2370bbc1363c46618c3d408a77cc393f0c9b15 /fs/bcachefs/migrate.c | |
parent | 9a796fdb06b56a1811f1afdd40b793e2848a990e (diff) | |
download | linux-stable-b71717dac64d76879ba3c70cfcfccf57991205f8.tar.gz linux-stable-b71717dac64d76879ba3c70cfcfccf57991205f8.tar.bz2 linux-stable-b71717dac64d76879ba3c70cfcfccf57991205f8.zip |
bcachefs: Handle transaction restarts in bch2_blacklist_entries_gc()
It shouldn't be necessary when we're only using a single iterator and
not doing updates, but that's harder to debug at the moment.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/migrate.c')
-rw-r--r-- | fs/bcachefs/migrate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/migrate.c b/fs/bcachefs/migrate.c index 00ba6e1c92ee..6defc33322b3 100644 --- a/fs/bcachefs/migrate.c +++ b/fs/bcachefs/migrate.c @@ -136,6 +136,7 @@ static int bch2_dev_metadata_drop(struct bch_fs *c, unsigned dev_idx, int flags) bch2_trans_node_iter_init(&trans, &iter, id, POS_MIN, 0, 0, BTREE_ITER_PREFETCH); retry: + ret = 0; while (bch2_trans_begin(&trans), (b = bch2_btree_iter_peek_node(&iter)) && !(ret = PTR_ERR_OR_ZERO(b))) { |