Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: fix error checking in bch2_fs_alloc()

There is a typo here where it uses ";" instead of "?:". The result is
that bch2_fs_fs_io_direct_init() is called unconditionally and the errors
from it are not checked.

Fixes: 0060c68159fc ("bcachefs: Split up fs-io.[ch]")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Reviewed-by: Brian Foster <bfoster@redhat.com>

authored by

Dan Carpenter and committed by
Kent Overstreet
867c1fe0 4ba985b8

+1 -1
+1 -1
fs/bcachefs/super.c
··· 852 852 bch2_fs_compress_init(c) ?: 853 853 bch2_fs_ec_init(c) ?: 854 854 bch2_fs_fsio_init(c) ?: 855 - bch2_fs_fs_io_buffered_init(c); 855 + bch2_fs_fs_io_buffered_init(c) ?: 856 856 bch2_fs_fs_io_direct_init(c); 857 857 if (ret) 858 858 goto err;