bcachefs: Fix return type of dirent_points_to_inode_nowarn()
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 1 Oct 2024 21:43:36 +0000 (17:43 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 3 Oct 2024 01:30:55 +0000 (21:30 -0400)
we're returning an error code now, not a bool

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fsck.c

index 0d8b782..c6c98ee 100644 (file)
@@ -28,8 +28,8 @@ static bool inode_points_to_dirent(struct bch_inode_unpacked *inode,
                inode->bi_dir_offset    == d.k->p.offset;
 }
 
-static bool dirent_points_to_inode_nowarn(struct bkey_s_c_dirent d,
-                                  struct bch_inode_unpacked *inode)
+static int dirent_points_to_inode_nowarn(struct bkey_s_c_dirent d,
+                                        struct bch_inode_unpacked *inode)
 {
        if (d.v->d_type == DT_SUBVOL
            ? le32_to_cpu(d.v->d_child_subvol)  == inode->bi_subvol