Skip to content

Instantly share code, notes, and snippets.

@YellowOnion
Created June 13, 2022 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YellowOnion/31730c5423df9e1bdd6aaf7fe171467a to your computer and use it in GitHub Desktop.
Save YellowOnion/31730c5423df9e1bdd6aaf7fe171467a to your computer and use it in GitHub Desktop.
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c
index 2847000ec60c..7319f338dd39 100644
--- a/fs/bcachefs/move.c
+++ b/fs/bcachefs/move.c
@@ -944,6 +944,8 @@ int bch2_evacuate_bucket(struct bch_fs *c,
bch2_trans_begin(&trans);
+ BUG_ON(bp_offset == U64_MAX);
+
ret = bch2_get_next_backpointer(&trans, bucket, gen,
&bp_offset, &bp, &bp_pos);
if (ret == -EINTR)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment