Commit abaa6d4f authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix return type of dirent_points_to_inode_nowarn()

we're returning an error code now, not a bool
Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e764e681
...@@ -28,8 +28,8 @@ static bool inode_points_to_dirent(struct bch_inode_unpacked *inode, ...@@ -28,8 +28,8 @@ static bool inode_points_to_dirent(struct bch_inode_unpacked *inode,
inode->bi_dir_offset == d.k->p.offset; inode->bi_dir_offset == d.k->p.offset;
} }
static bool dirent_points_to_inode_nowarn(struct bkey_s_c_dirent d, static int dirent_points_to_inode_nowarn(struct bkey_s_c_dirent d,
struct bch_inode_unpacked *inode) struct bch_inode_unpacked *inode)
{ {
if (d.v->d_type == DT_SUBVOL if (d.v->d_type == DT_SUBVOL
? le32_to_cpu(d.v->d_child_subvol) == inode->bi_subvol ? le32_to_cpu(d.v->d_child_subvol) == inode->bi_subvol
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment