bcachefs: Fix infinite loop in journal_entry_btree_keys_to_text()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 25 May 2025 21:04:11 +0000 (17:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 30 May 2025 05:21:12 +0000 (01:21 -0400)
commitd6efd42a8450c67d283dbaacd127dcccca858f51
tree50096ff3b3c1eb2b340be62754f3e22f62a1fafa
parentcd04497b10e6178a7510329465d05788b906ce5f
bcachefs: Fix infinite loop in journal_entry_btree_keys_to_text()

Fix an infinite loop when bkey_i->k.u64s is 0.

This only happens in userspace, where 'bcachefs list_journal' can print
the entire contents of the journal, and non-dirty entries aren't
validated.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_io.c