bcachefs: Refactor journal_keys_sort() to return an error code
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 21 Mar 2022 04:15:53 +0000 (00:15 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:30 +0000 (17:09 -0400)
commit95752a02cb5d38bc97d76625de2607510ac94e69
tree642b954fd1d059cf0911b743359aeacdf8f128d2
parent822835ffeae411bbc8af104da9331fdf63a7bc12
bcachefs: Refactor journal_keys_sort() to return an error code

When there weren't any keys in the journal there's no need to allocate
the buffer - but doing that causes a spurious -ENOMEM.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/recovery.c