mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 03:59:40 +02:00
bcachefs: give bch2_write_super() a proper error code
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
4a90675cfe
commit
fba513a9ee
|
|
@ -1159,7 +1159,7 @@ int bch2_write_super(struct bch_fs *c)
|
|||
!can_mount_with_written), c,
|
||||
": Unable to write superblock to sufficient devices (from %ps)",
|
||||
(void *) _RET_IP_))
|
||||
ret = -1;
|
||||
ret = -BCH_ERR_erofs_sb_err;
|
||||
out:
|
||||
/* Make new options visible after they're persistent: */
|
||||
bch2_sb_update(c);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user