Skip to content

Commit 165815c

Browse files
author
Kent Overstreet
committed
bcachefs: Convert BUG() to error
Signed-off-by: Kent Overstreet <[email protected]>
1 parent 1322632 commit 165815c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/bcachefs/fsck.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,8 @@ int bch2_fsck_update_backpointers(struct btree_trans *trans,
984984
int ret = 0;
985985

986986
if (d->v.d_type == DT_SUBVOL) {
987-
BUG();
987+
bch_err(trans->c, "%s does not support DT_SUBVOL", __func__);
988+
ret = -BCH_ERR_fsck_repair_unimplemented;
988989
} else {
989990
ret = get_visible_inodes(trans, &target, s, le64_to_cpu(d->v.d_inum));
990991
if (ret)

0 commit comments

Comments
 (0)