Skip to content

Commit abaa6d4

Browse files
author
Kent Overstreet
committed
bcachefs: Fix return type of dirent_points_to_inode_nowarn()
we're returning an error code now, not a bool Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
1 parent e764e68 commit abaa6d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/bcachefs/fsck.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ static bool inode_points_to_dirent(struct bch_inode_unpacked *inode,
2828
inode->bi_dir_offset == d.k->p.offset;
2929
}
3030

31-
static bool dirent_points_to_inode_nowarn(struct bkey_s_c_dirent d,
32-
struct bch_inode_unpacked *inode)
31+
static int dirent_points_to_inode_nowarn(struct bkey_s_c_dirent d,
32+
struct bch_inode_unpacked *inode)
3333
{
3434
if (d.v->d_type == DT_SUBVOL
3535
? le32_to_cpu(d.v->d_child_subvol) == inode->bi_subvol

0 commit comments

Comments
 (0)