Skip to content

Commit 9c09e59

Browse files
author
Kent Overstreet
committed
bcachefs: fix wrong arg to fsck_err()
fsck_err() needs the btree transaction passed to it if there is one - so that it can unlock/relock around prompting userspace for fixing the error. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent d1041d8 commit 9c09e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/fsck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,7 @@ static int check_subvol_path(struct btree_trans *trans, struct btree_iter *iter,
24462446
u32 parent = le32_to_cpu(s.v->fs_path_parent);
24472447

24482448
if (darray_u32_has(&subvol_path, parent)) {
2449-
if (fsck_err(c, subvol_loop, "subvolume loop"))
2449+
if (fsck_err(trans, subvol_loop, "subvolume loop"))
24502450
ret = reattach_subvol(trans, s);
24512451
break;
24522452
}

0 commit comments

Comments
 (0)