diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-01 15:46:59 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-14 21:02:15 -0400 |
| commit | fba513a9ee2fb8d4acc875a7de6d93f283cfc103 (patch) | |
| tree | 2dfa10aadfcb8b8da62b34f8c5738b76492a3e58 /fs | |
| parent | bcachefs: bcachefs_metadata_version_extent_flags (diff) | |
| download | linux-fba513a9ee2fb8d4acc875a7de6d93f283cfc103.tar.gz linux-fba513a9ee2fb8d4acc875a7de6d93f283cfc103.zip | |
bcachefs: give bch2_write_super() a proper error code
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/bcachefs/super-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index 7bd2d3d84295..9a204baa3ab9 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -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); |
