Skip to content

Instantly share code, notes, and snippets.

@YellowOnion
Created December 5, 2025 05:02
Show Gist options
  • Select an option

  • Save YellowOnion/ffac2bad79a3885f37c8051297b3dd5e to your computer and use it in GitHub Desktop.

Select an option

Save YellowOnion/ffac2bad79a3885f37c8051297b3dd5e to your computer and use it in GitHub Desktop.
diff --git a/fs/bcachefs/journal/sb.c b/fs/bcachefs/journal/sb.c
index 12ab92fee968a..4a65c008f3a52 100644
--- a/fs/bcachefs/journal/sb.c
+++ b/fs/bcachefs/journal/sb.c
@@ -232,8 +232,6 @@ int bch2_sb_journal_sort(struct bch_fs *c)
for_each_online_member(c, ca, BCH_DEV_READ_REF_sb_journal_sort) {
struct bch_sb_field_journal_v2 *j = bch2_sb_field_get(ca->disk_sb.sb, journal_v2);
- if (!j)
- continue;
if ((j && journal_v2_unsorted(j)) ||
bch2_sb_field_get(ca->disk_sb.sb, journal)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment