]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
bcachefs: Fix forgetting to pass trans to fsck_err()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 16 Aug 2024 16:31:29 +0000 (12:31 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 16 Aug 2024 16:46:40 +0000 (12:46 -0400)
Reported-by: syzbot+e3938cd6d761b78750e6@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/buckets.c

index b69ef4b3de6e2a258ca09dfb2afc27d2dc12b239..ad517ef744e57765941c15465182cc2bc0431bae 100644 (file)
@@ -925,7 +925,7 @@ static int __bch2_trans_mark_metadata_bucket(struct btree_trans *trans,
                return PTR_ERR(a);
 
        if (a->v.data_type && type && a->v.data_type != type) {
-               bch2_fsck_err(c, FSCK_CAN_IGNORE|FSCK_NEED_FSCK,
+               bch2_fsck_err(trans, FSCK_CAN_IGNORE|FSCK_NEED_FSCK,
                              bucket_metadata_type_mismatch,
                        "bucket %llu:%llu gen %u different types of data in same bucket: %s, %s\n"
                        "while marking %s",