From: Kent Overstreet Date: Wed, 3 Nov 2021 21:23:49 +0000 (-0400) Subject: bcachefs: Improve error message in bch2_write_super() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d647db314adb8b5b60224a7604566746e7203c22;p=linux.git bcachefs: Improve error message in bch2_write_super() It's helpful to know what the superblock write is for. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index be080c407286d..637408d762709 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -809,7 +809,8 @@ int bch2_write_super(struct bch_fs *c) !can_mount_with_written || (can_mount_without_written && !can_mount_with_written), c, - "Unable to write superblock to sufficient devices")) + "Unable to write superblock to sufficient devices (from %ps)", + (void *) _RET_IP_)) ret = -1; out: /* Make new options visible after they're persistent: */