bcachefs: Improve error message in bch2_write_super()

It's helpful to know what the superblock write is for.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
Kent Overstreet 2021-11-03 17:23:49 -04:00 committed by Kent Overstreet
parent 85eb2bae7f
commit d647db314a

View File

@ -809,7 +809,8 @@ int bch2_write_super(struct bch_fs *c)
!can_mount_with_written || !can_mount_with_written ||
(can_mount_without_written && (can_mount_without_written &&
!can_mount_with_written), c, !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; ret = -1;
out: out:
/* Make new options visible after they're persistent: */ /* Make new options visible after they're persistent: */