Commit c23a9e08 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Improve jset_validate()



Previously, jset_validate() was formatting the initial part of an error
string for every entry it validating - expensive.

This moves that code to journal_entry_err_msg(), which is now only
called if there's an actual error.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 3f3bc66e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment