Skip to content

Commit 497c57a

Browse files
author
Kent Overstreet
committed
bcachefs: Disable debug log statements
The journal read path had some informational log statements preperatory for ZNS support - they're not of interest to users, so we can turn them off. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent f42fa17 commit 497c57a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

fs/bcachefs/journal_io.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,13 +1079,20 @@ static void bch2_journal_read_device(struct closure *cl)
10791079

10801080
if (ja->bucket_seq[ja->cur_idx] &&
10811081
ja->sectors_free == ca->mi.bucket_size) {
1082+
#if 0
1083+
/*
1084+
* Debug code for ZNS support, where we (probably) want to be
1085+
* correlated where we stopped in the journal to the zone write
1086+
* points:
1087+
*/
10821088
bch_err(c, "ja->sectors_free == ca->mi.bucket_size");
10831089
bch_err(c, "cur_idx %u/%u", ja->cur_idx, ja->nr);
10841090
for (i = 0; i < 3; i++) {
10851091
unsigned idx = (ja->cur_idx + ja->nr - 1 + i) % ja->nr;
10861092

10871093
bch_err(c, "bucket_seq[%u] = %llu", idx, ja->bucket_seq[idx]);
10881094
}
1095+
#endif
10891096
ja->sectors_free = 0;
10901097
}
10911098

0 commit comments

Comments
 (0)