From: Kent Overstreet Date: Wed, 3 Jul 2024 16:58:34 +0000 (-0400) Subject: bcachefs: Log mount failure error code X-Git-Tag: microblaze-v6.13~768^2~10 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=0f1f7324da0a65c823f16c0abae3bf2c18ee43e7;p=linux-2.6-microblaze.git bcachefs: Log mount failure error code Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index 98238da7c8c1..74a1e12a7a14 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -2032,6 +2032,8 @@ err_put_super: __bch2_fs_stop(c); deactivate_locked_super(sb); err: + if (ret) + pr_err("error: %s", bch2_err_str(ret)); /* * On an inconsistency error in recovery we might see an -EROFS derived * errorcode (from the journal), but we don't want to return that to