projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1322632
)
bcachefs: Convert BUG() to error
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sat, 31 May 2025 23:20:33 +0000
(19:20 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 2 Jun 2025 16:16:35 +0000
(12:16 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fsck.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bcachefs/fsck.c
b/fs/bcachefs/fsck.c
index 631ee2af8585f19f8b2d656f594a2b3bb2a68ad9..61d6d99875ea771dd44d1c720acaffa9e8844aed 100644
(file)
--- a/
fs/bcachefs/fsck.c
+++ b/
fs/bcachefs/fsck.c
@@
-984,7
+984,8
@@
int bch2_fsck_update_backpointers(struct btree_trans *trans,
int ret = 0;
if (d->v.d_type == DT_SUBVOL) {
- BUG();
+ bch_err(trans->c, "%s does not support DT_SUBVOL", __func__);
+ ret = -BCH_ERR_fsck_repair_unimplemented;
} else {
ret = get_visible_inodes(trans, &target, s, le64_to_cpu(d->v.d_inum));
if (ret)